Hi,
I have a subform that opens from a main form via a command button. The main form fields are populated based on a series of queries, ultimately based on tables. The subform is populated from and bound to a separate table.
On the main form, the fields are blank, however when opening the subform via the first record on the main form, the fields in the subform are populated with the first values on its dedicated table, albeit the ID (Primary Key) is the record it ought to be (as defined by the record on the main form). I would like it to remain blank if there is no data for that ID, rather than stealing the first available data from another record!
I've done numerous Google searches to figure out what's wrong but as yet have had no luck. Any help would therefore be greatly appreciated.
Thanks
Sarah
I have a subform that opens from a main form via a command button. The main form fields are populated based on a series of queries, ultimately based on tables. The subform is populated from and bound to a separate table.
On the main form, the fields are blank, however when opening the subform via the first record on the main form, the fields in the subform are populated with the first values on its dedicated table, albeit the ID (Primary Key) is the record it ought to be (as defined by the record on the main form). I would like it to remain blank if there is no data for that ID, rather than stealing the first available data from another record!
I've done numerous Google searches to figure out what's wrong but as yet have had no luck. Any help would therefore be greatly appreciated.
Thanks
Sarah
Comment