General information
Category:
Forms & Form designer
Title:
Setting record source in grid
Suppose there is a form with a grid and a combobox that opens with no tables open. The user types the name of a file into a textbox and clicks a button to open the file. As in
lcFileToOpen = txtbox.value
use (lcFileToOpen) in 0 alias currenttable
Then we issue:
thisform.grid1.recordsource = currenttable
thisform.grid1.init
thisform.grid1.refresh
but nothing happens.
So my question is: How do you dynamically set a source table for a grid?
As always, Thanks for any help on this one.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only