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!

basic grid issue...

Status
Not open for further replies.

tristero

Programmer
Jan 24, 2003
95
0
0
US
i have a grid with the recordsource/columnsource set to an alias.

however i want to change the table for this grid so i have the user select which table using an optiongroup which has a click event that closes the current table and opens a different table with the same alias.


i can't get this to work just by doing a grid.refresh()... why not?


i can figure a way to make it work by redefining the table recordsource/columnsource, but i have a grid.column.text.dblclick() event that gets lost in the process.


please help.... thank you.

Dan Trenz
Ann Arbor, MI
 
Try setting RecordSource to "" (empty double quote) first, then to your new table/cursor.

Code:
MyForm.grid1.RecordSource = ''
USE SomeTable ALIAS NewTable IN 0
MyForm.grid1.RecordSource = 'NewTable'


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top