I have a form which has a subform and buttons to move through the recordset displayed by the main form (First, Next, etc.). I tie the subform's data to the form's data by setting a public variable equal to an ID from the form, then the subform is filtered off of that public variable.
When I open the form or click the First, Next, etc. buttons (ie. go from record to record), the data in the form is correct. However, the only time the subform is correct is on the first record. After I click a button, the ID the subform looks for is 0, and it becomes blank. Is there a way, when I click a button, to force the subform to refresh?
I did add (in VBA) a Form_Load statement in the button's click action that reloads the subform when the button's clicked. This pulls up the subform with the correct data, but all by itself (separately from the form). What I could use is a way to refresh the subform, but within the form.
Thank you,
Steve Geller
When I open the form or click the First, Next, etc. buttons (ie. go from record to record), the data in the form is correct. However, the only time the subform is correct is on the first record. After I click a button, the ID the subform looks for is 0, and it becomes blank. Is there a way, when I click a button, to force the subform to refresh?
I did add (in VBA) a Form_Load statement in the button's click action that reloads the subform when the button's clicked. This pulls up the subform with the correct data, but all by itself (separately from the form). What I could use is a way to refresh the subform, but within the form.
Thank you,
Steve Geller