<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Trouble adding records</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Trouble adding records]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 16 May 2026 02:51:03 +0000</pubDate>
  <lastBuildDate>Tue, 27 Jun 2006 17:08:47 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=4470</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Trouble adding records : So far, as it has been clarified:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4470&amp;PID=13877&amp;title=trouble-adding-records#13877</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4470<br /><strong>Posted:</strong> 27 June 2006 at 5:08pm<br /><br />So far, as it has been clarified: soluition is to set ID_SELECT_* const values to consequent integers starting from 0.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Tue, 27 Jun 2006 17:08:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4470&amp;PID=13877&amp;title=trouble-adding-records#13877</guid>
  </item> 
  <item>
   <title><![CDATA[Trouble adding records : I tried the    Set PersonnelItem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4470&amp;PID=13851&amp;title=trouble-adding-records#13851</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1547">Krenshau</a><br /><strong>Subject:</strong> 4470<br /><strong>Posted:</strong> 26 June 2006 at 5:28pm<br /><br />I tried the <DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>Set PersonnelItem = PersonnelRecord.addItem("FirstName")</DIV><DIV></pre></td></tr></table></DIV><DIV>and it put more rows on the control, but still no text.</DIV><DIV>&nbsp;</DIV><DIV>Thank you for helping me.</DIV>]]>
   </description>
   <pubDate>Mon, 26 Jun 2006 17:28:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4470&amp;PID=13851&amp;title=trouble-adding-records#13851</guid>
  </item> 
  <item>
   <title><![CDATA[Trouble adding records : Try adding some text for test,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4470&amp;PID=13830&amp;title=trouble-adding-records#13830</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4470<br /><strong>Posted:</strong> 26 June 2006 at 5:16am<br /><br />Try adding some text for test, like:<br><table width="99%"><tr><td><pre class="BBcode"><br>Set PersonnelItem = PersonnelRecord.AddItem("FirstName")<br></pre></td></tr></table><br>Check whether it is displayed properly. <br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Mon, 26 Jun 2006 05:16:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4470&amp;PID=13830&amp;title=trouble-adding-records#13830</guid>
  </item> 
  <item>
   <title><![CDATA[Trouble adding records : Hi, I had the same problem before,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4470&amp;PID=13821&amp;title=trouble-adding-records#13821</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1884">moe188</a><br /><strong>Subject:</strong> 4470<br /><strong>Posted:</strong> 24 June 2006 at 6:32pm<br /><br />Hi,<DIV></DIV>I had the same problem before, and I am using almost the same code, but from your code, the AddPSRecord will only let you show the data that you request (FirstName, LastName and RecordID)<DIV>I think you need to add a Text to AddPSRecord, then use <strong>.PreviewText</strong></DIV><DIV>good luck</DIV>]]>
   </description>
   <pubDate>Sat, 24 Jun 2006 18:32:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4470&amp;PID=13821&amp;title=trouble-adding-records#13821</guid>
  </item> 
  <item>
   <title><![CDATA[Trouble adding records : This is my first time using the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4470&amp;PID=13801&amp;title=trouble-adding-records#13801</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1547">Krenshau</a><br /><strong>Subject:</strong> 4470<br /><strong>Posted:</strong> 22 June 2006 at 4:54pm<br /><br />This is my first time using the report control, and I am having some trouble displaying records. I have viewed the samples, and get close to it working right, but not quite.<DIV>&nbsp;</DIV><DIV>I am using the control to display results from a database when multiple records are retrieved. I can get the control to appear that it has two rows, as it should, but the text won't show up. I am sure I am missing something simple, but I can't seem to find what it is.</DIV><DIV>&nbsp;</DIV><DIV>Here is my code. </DIV><DIV>&nbsp;</DIV><DIV>This is in the form load sub</DIV><DIV>&nbsp;</DIV><DIV>Private Sub Form_Load()<BR>On Error GoTo ErrorHandler</DIV><DIV>Dim PSColumn As ReportColumn</DIV><DIV>Set PSColumn = PSReportControl.Columns.Add(ID_SELECT_FIRSTNAME, "First Name", 10, True)<BR>PSColumn.AllowDrag = False<BR>PSColumn.AllowRemove = False<BR>PSColumn.Editable = False<BR>PSColumn.AutoSize = True<BR>PSColumn.Visible = True<BR>Set PSColumn = PSReportControl.Columns.Add(ID_SELECT_LASTNAME, "Last Name", 10, True)<BR>PSColumn.AllowDrag = False<BR>PSColumn.AllowRemove = False<BR>PSColumn.Editable = False<BR>PSColumn.AutoSize = True<BR>PSColumn.Visible = True<BR>Set PSColumn = PSReportControl.Columns.Add(ID_SELECT_ID, "ID", 4, True)<BR>PSColumn.AllowDrag = False<BR>PSColumn.AllowRemove = False<BR>PSColumn.Editable = False<BR>PSColumn.AutoSize = True<BR>PSColumn.Visible = False</DIV><DIV>Exit Sub<BR>ErrorHandler:<BR>ErrorAlert.ErrorAlert Err.Number, Err.Description, "frmPersonnelSelection.Form_Load"<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>this is is the sub that recieves the data from the database.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ElseIf .RESULT_COUNT &gt; 1 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim I As Integer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For I = 1 To .RESULT_COUNT<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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p;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR></DIV><DIV>&nbsp;</DIV><DIV>and this is the code that is in the AddPSRecord sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Public Sub AddPSRecord(ByVal FirstName As String, ByVal LastName As String, ByVal RecordID As Long)<BR>On Error GoTo ErrorHandler</DIV><DIV>Dim PersonnelRecord As ReportRecord<BR>Dim PersonnelItem As ReportRecordItem</DIV><DIV>Set PersonnelRecord = frmPersonnelSelection.PSReportControl.Records.Add</DIV><DIV>Set PersonnelItem = PersonnelRecord.AddItem(FirstName)<BR>Set PersonnelItem = PersonnelRecord.AddItem(LastName)<BR>Set PersonnelItem = PersonnelRecord.AddItem(RecordID)</DIV><DIV>Exit Sub<BR>ErrorHandler:<BR>ErrorAlert.ErrorAlert Err.Number, Err.Description, "ResourceMOD.AddRecord"<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>As I said, it appears to add the rows, but not the text. I did step thru the code and the variables are holding a proper value.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Thank you for your help.</DIV><DIV>&nbsp;</DIV><DIV>Ben</DIV>]]>
   </description>
   <pubDate>Thu, 22 Jun 2006 16:54:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4470&amp;PID=13801&amp;title=trouble-adding-records#13801</guid>
  </item> 
 </channel>
</rss>