General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
How can I show diverse data in a predefined GRID
Hello everybody!
This is my problem: In the click event of a pushbutton included into a form, I create a free table with data recovered from other two tables. My code names this table with current hour, minute and second and creates a variable (lcTableName), i.e.: lcTableName = 142512.dbf(this permit other users to create their own free table). I can see the data of this table perfectly with the BROWSE command. When I refer to the table I always use the macro &lcTableName.
Well, the problem is comming now: I would like to show this data in a GRID posted in a new form. I have tried to create the grid previously with a fixed data structure and sending later as a PARAMETER lcTableName to the new form trying to assign RecordSource = &lcTableName, but it doesn't work.
Probably I should create the grid by programming, but where should I write this code, into the INIT event of the form?. Someone expert in grids could give an example of such code including how to assign a parameter to the RecordSource?
Thanks in advance!
Carlos Fuertes
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