How to requery main form before opening subform.

Pedigreeman

Registered User.
Local time
Today, 23:25
Joined
Mar 14, 2011
Messages
57
I have a main form and a subform. The subform displays fields also visible in the main form such as 'Name'. When I click a button on the main form it opens this subform. The problem is this:

Everything works fine with existing records, but when I click a button on the main form, to open up the subform, the Name field in the subform is blank, unlike that of the main form, which has just been filled in. Both forms are linked to the same 'name' field in an underlying table.

So I suspect, filling in the 'name' field in the main form, only updates the underlying table upon closing the main form (or changing the record?). What I want it to do is to update the main table as soon as the name text box has been filled in, in the main form. I hope this is clear.

Help/suggestions much appreciated as always
 
Tough crowd...have I confused everyone with my messy description?
 
Tough crowd...have I confused everyone with my messy description?
I think you may have ;)

Everything works fine with existing records, but when I click a button on the main form, to open up the subform, the Name field in the subform is blank, unlike that of the main form, which has just been filled in. Both forms are linked to the same 'name' field in an underlying table.
Did you move away from the textbox after entering the text?
 

Users who are viewing this thread

Back
Top Bottom