transitioning from form to subform

  • Thread starter Thread starter valerie
  • Start date Start date
V

valerie

I have a form with a subform. Each has a date field, but
they feed two different tables. However, I want the dates
to be the same in both forms. So I set the default value
in my subform to equal the value in my form. All works
fine...except in the very first line of the subform. The
date will not autofill on the first line but it will on
all subsequent lines. Any idea what's causing this or how
to fix it?

Thanks in advance.

Valerie
 
This is probably because subforms load before the forms that contain
them. When your subform first loads, the field in the main form has
not been initialised. Incidentally, if the two values are always the
same (as each other) you should only be keeping one of them in one
table, which would solve your problem.
 
Back
Top