garfieldvv
Programmer
hello,
I have a DB that is made with a table for each year. I use a main form, set as continues, to display the content of these tables and I use a combo box to change the recordsource. on this form, on each line, I have a button to open another form to display and modify the full record data.
this is the command I use to open the form:
my problem is that I can't make the second form open to the correct RS. on both forms the fields are bound to the field of the "RecordSource" table, to allow the record change.
I have tried putting the RS on a global variable, tried setting the form's RS right after it opens and right before and many other options, I just can't seem to get it to work. I am very close to create duplicate forms with hard set RS and open them with "case" statement.
anybody has the answer to this situation?
Thanks!
Tom
I have a DB that is made with a table for each year. I use a main form, set as continues, to display the content of these tables and I use a combo box to change the recordsource. on this form, on each line, I have a button to open another form to display and modify the full record data.
this is the command I use to open the form:
Code:
DoCmd.OpenForm "JobForm", acNormal, , "msd=" & msd
my problem is that I can't make the second form open to the correct RS. on both forms the fields are bound to the field of the "RecordSource" table, to allow the record change.
I have tried putting the RS on a global variable, tried setting the form's RS right after it opens and right before and many other options, I just can't seem to get it to work. I am very close to create duplicate forms with hard set RS and open them with "case" statement.
anybody has the answer to this situation?
Thanks!
Tom