Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to connect MS Hflexgrid to data environment in runtime

Status
Not open for further replies.

nqueen

MIS
Sep 21, 2005
46
0
0
CA
Hi,
we built a hierarchical flexgrid following a step by step book that showed us how to connect that mshflexgrid through data environment which works. For now, the felxgrid shows all options of a products but we need to show the options of a specific product only when that product is selected through our combo box.
The problem now, is that we did that connection using the properties. we don t know how to hardcode the connections from a data environment so taht we can use some code to be able to show only the options needed for a product.

would you have any idea of how to do it?
thanks
 
etc.

This bit of code may help you, ie put .recordsource in Form_Load...

Private Sub Form_Load()

xx = InputBox("Which Date ????", "", Date)

datPrimaryRS.RecordSource = "select xxxDate,xxxVenue Where xxxdate= " & "#" & xx & "#" & " Order by xxxDate,xxxVenue"

datPrimaryRS.Refresh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top