<?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 : Report with comboboxes in cell</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Report with comboboxes in cell]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 03:44:50 +0000</pubDate>
  <lastBuildDate>Fri, 29 Feb 2008 16:16:31 +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=9340</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[Report with comboboxes in cell : Hi Jason, MANY MANY thanks for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31779&amp;title=report-with-comboboxes-in-cell#31779</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3590">Neil</a><br /><strong>Subject:</strong> 9340<br /><strong>Posted:</strong> 29 February 2008 at 4:16pm<br /><br />Hi Jason, MANY MANY thanks for all of your help so far. I had spotted the bug regarding the Column numbers and had fixed it already. The latest code (although not behaving exactly as I want it to), provides more than enough of a framework for me to extend it to do what I want.<br><br>Once again, thank you VERY VERY much, and have a nice weekend.<br>]]>
   </description>
   <pubDate>Fri, 29 Feb 2008 16:16:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31779&amp;title=report-with-comboboxes-in-cell#31779</guid>
  </item> 
  <item>
   <title><![CDATA[Report with comboboxes in cell : Ok. This is kinda hacked so if...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31778&amp;title=report-with-comboboxes-in-cell#31778</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 9340<br /><strong>Posted:</strong> 29 February 2008 at 3:59pm<br /><br />Ok.&nbsp; This is kinda hacked so if someone knows a better way, please let me know.<br>Add Dim blnNumericOnly As Boolean to General Declaration of the form<br><br>Private Sub wndReport_MouseDown(Button As Integer, Shift As Integer, x As Long, y As Long)<br><br>&nbsp;&nbsp;&nbsp; Dim hitItem As ReportRecordItem<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Set hitItem = wndReport.HitTest(x, y).Item<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; If Not hitItem Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If hitItem.Index = COLUMN_EMPLOYEE_AGE Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; blnNumericOnly = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; blnNumericOnly = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; <br>End Sub<br><br>Private Sub wndReport_PreviewKeyDown(KeyCode As Integer, ByVal Shift As Integer, Cancel As Boolean)<br><br>&nbsp;&nbsp;&nbsp; If blnNumericOnly = False Then Exit Sub<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; If (KeyCode &lt; 48 Or KeyCode &gt; 57) And KeyCode &lt;&gt; 8 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cancel = True<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>End Sub<br><br><br>]]>
   </description>
   <pubDate>Fri, 29 Feb 2008 15:59:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31778&amp;title=report-with-comboboxes-in-cell#31778</guid>
  </item> 
  <item>
   <title><![CDATA[Report with comboboxes in cell : Ignore the PreviewKeyDown part....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31776&amp;title=report-with-comboboxes-in-cell#31776</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 9340<br /><strong>Posted:</strong> 29 February 2008 at 3:47pm<br /><br />Ignore the PreviewKeyDown part.&nbsp; It's not right.]]>
   </description>
   <pubDate>Fri, 29 Feb 2008 15:47:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31776&amp;title=report-with-comboboxes-in-cell#31776</guid>
  </item> 
  <item>
   <title><![CDATA[Report with comboboxes in cell : Try this:Private Sub wndReport_PreviewKeyDown(KeyCode...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31775&amp;title=report-with-comboboxes-in-cell#31775</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 9340<br /><strong>Posted:</strong> 29 February 2008 at 3:39pm<br /><br />Try this:<br><br>Private Sub wndReport_PreviewKeyDown(KeyCode As Integer, ByVal Shift As Integer, Cancel As Boolean)<br><br>&nbsp;&nbsp;&nbsp; If (KeyCode &lt; 48 Or KeyCode &gt; 57) And KeyCode &lt;&gt; 8 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cancel = True<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp; &nbsp;<br>End Sub<br><br>I also noticed an error in the form_load event.&nbsp; Notice the changes with the constants:<br><br>'Create the second column<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Column = .Columns.Add(<b>COLUMN_EMPLOYEE_NAME</b>, "Name", DFLT_COL_WIDTH, True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Editable = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Create the third column<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Column = .Columns.Add(<b>COLUMN_EMPLOYEE_AGE</b>, "Age", DFLT_COL_WIDTH, True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Editable = True<br>]]>
   </description>
   <pubDate>Fri, 29 Feb 2008 15:39:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31775&amp;title=report-with-comboboxes-in-cell#31775</guid>
  </item> 
  <item>
   <title><![CDATA[Report with comboboxes in cell : Thanks Jason - it now does EXACTLY...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31774&amp;title=report-with-comboboxes-in-cell#31774</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3590">Neil</a><br /><strong>Subject:</strong> 9340<br /><strong>Posted:</strong> 29 February 2008 at 3:31pm<br /><br />Thanks Jason - it now does EXACTLY what I want it to do.<br><br>One last question though, if I may. Do you know how I can restrict the value a user types into the cell of a column (e.g. the 'Age' column), so that only numbers can be typed into that column?<br><br>MTIA<br>]]>
   </description>
   <pubDate>Fri, 29 Feb 2008 15:31:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31774&amp;title=report-with-comboboxes-in-cell#31774</guid>
  </item> 
  <item>
   <title><![CDATA[Report with comboboxes in cell : Just got it now - I was away for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31773&amp;title=report-with-comboboxes-in-cell#31773</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3590">Neil</a><br /><strong>Subject:</strong> 9340<br /><strong>Posted:</strong> 29 February 2008 at 3:16pm<br /><br />Just got it now - I was away for a few hours. I'll give you feedback ASAP.<br><br>Thanks<br>]]>
   </description>
   <pubDate>Fri, 29 Feb 2008 15:16:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31773&amp;title=report-with-comboboxes-in-cell#31773</guid>
  </item> 
  <item>
   <title><![CDATA[Report with comboboxes in cell : I sent it back to you. Let me...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31772&amp;title=report-with-comboboxes-in-cell#31772</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 9340<br /><strong>Posted:</strong> 29 February 2008 at 1:42pm<br /><br />I sent it back to you.&nbsp; Let me know if you didn't get it.]]>
   </description>
   <pubDate>Fri, 29 Feb 2008 13:42:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31772&amp;title=report-with-comboboxes-in-cell#31772</guid>
  </item> 
  <item>
   <title><![CDATA[Report with comboboxes in cell : Thank you  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31771&amp;title=report-with-comboboxes-in-cell#31771</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3590">Neil</a><br /><strong>Subject:</strong> 9340<br /><strong>Posted:</strong> 29 February 2008 at 12:25pm<br /><br />Thank you]]>
   </description>
   <pubDate>Fri, 29 Feb 2008 12:25:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31771&amp;title=report-with-comboboxes-in-cell#31771</guid>
  </item> 
  <item>
   <title><![CDATA[Report with comboboxes in cell : I got it. I&amp;#039;ve found the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31769&amp;title=report-with-comboboxes-in-cell#31769</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1790">jcollier</a><br /><strong>Subject:</strong> 9340<br /><strong>Posted:</strong> 29 February 2008 at 12:19pm<br /><br />I got it.&nbsp; I've found the problem.&nbsp; I'm fixing it and will return it shortly.]]>
   </description>
   <pubDate>Fri, 29 Feb 2008 12:19:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31769&amp;title=report-with-comboboxes-in-cell#31769</guid>
  </item> 
  <item>
   <title><![CDATA[Report with comboboxes in cell : I sent the demo to the email address...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31768&amp;title=report-with-comboboxes-in-cell#31768</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3590">Neil</a><br /><strong>Subject:</strong> 9340<br /><strong>Posted:</strong> 29 February 2008 at 12:18pm<br /><br />I sent the demo to the email address you kindly provided - I hope you can help point out what I may be doing incorrectly]]>
   </description>
   <pubDate>Fri, 29 Feb 2008 12:18:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9340&amp;PID=31768&amp;title=report-with-comboboxes-in-cell#31768</guid>
  </item> 
 </channel>
</rss>