ProAdjuster
Technical User
- Aug 31, 2007
- 12
I have one form, which I can use to look up a record.
The way this works is that the form is linked to a table called contacttempstore. It has a lookup field to my main table, and a field that stores the contact number in the only cell of contacttempstore. Every time I change the lookup field (ie. select a new name from the drop-down), the table requeries to pull up the contact I have selected. The subform is linked to the main form, so I can always access the record.
On this contacttempstore form, I have a button that I can use to open just the subform, so that I can add records, or delete records.
The problem I am experiencing is, when I switch to just the subform, I would like it to stay on the same record. Is there a way I can use a macro or code to look up the contacttempstore table and find the matching record?
The way this works is that the form is linked to a table called contacttempstore. It has a lookup field to my main table, and a field that stores the contact number in the only cell of contacttempstore. Every time I change the lookup field (ie. select a new name from the drop-down), the table requeries to pull up the contact I have selected. The subform is linked to the main form, so I can always access the record.
On this contacttempstore form, I have a button that I can use to open just the subform, so that I can add records, or delete records.
The problem I am experiencing is, when I switch to just the subform, I would like it to stay on the same record. Is there a way I can use a macro or code to look up the contacttempstore table and find the matching record?