|
-
January 26th, 2000, 11:29 AM
#1
Help with Combo Box............
I have some data showing on a Flexgrid (one of the coulmns is YEAR). I have placed a combo box on the form and it is populated with valid years on form load. But am not sure how to use a combo box to filter the records in the grid by year........
-
January 26th, 2000, 11:48 AM
#2
Re: Help with Combo Box............
If you're pulling the data in the grid from a database then one possible way would be:
When the user chooses a year from the drop down list (in the click event of the combo box), append a where clause to your SQL statement that says something like "WHERE Year = " & cboYear.Text and then refresh your recordset in the grid.
I don't think there is a "filter" method or anything like that for the MSFlexGrid, but I don't use all that often.
Hope this helps,
John
John Pirkey
MCSD
www.ShallowWaterSystems.com
John Pirkey
MCSD (VB6)
http://www.stlvbug.org
-
January 27th, 2000, 12:41 PM
#3
Re: Help with Combo Box............
Thanks ! I have my application running as I wanted it to !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|