R
Rachel Garrett
I have a subform that pulls some fields from the main form, and has
other fields that the user supplies. The results are stored in a table
(call it SubTable).
Right now, a fresh record is created each time the user goes to the
subform, fills out all required fields, and clicks Save. This is
managed with VBA/SQL.
Problem: users want to be able to go back and edit records that they
recently created. Since the index of SubTable is a superkey that
includes the date, it is easy to create a recordset that consists of
the data I want. But I don't know how to refer to it once I've got it
in the recordset.
Logically, what I'm trying to do is this:
When user opens the subform
Field 1 and Field 2 are populated from main form
SQL query creates recordset from
where Field 1 = Field 1 value
in form, Field 2 = Field 2 value in form, and date is less than 7 days
ago
other fields that the user supplies. The results are stored in a table
(call it SubTable).
Right now, a fresh record is created each time the user goes to the
subform, fills out all required fields, and clicks Save. This is
managed with VBA/SQL.
Problem: users want to be able to go back and edit records that they
recently created. Since the index of SubTable is a superkey that
includes the date, it is easy to create a recordset that consists of
the data I want. But I don't know how to refer to it once I've got it
in the recordset.
Logically, what I'm trying to do is this:
When user opens the subform
Field 1 and Field 2 are populated from main form
SQL query creates recordset from
in form, Field 2 = Field 2 value in form, and date is less than 7 days
ago