I have a sub form which is linked to the main form by an autonumber field, JobID. Both froms get their data from separate queries. Using this as a unique identifier I thus have the same single record visible in both forms at any given time, this is working great. However, when a new record is started although JobID automatically feeds into the main form, the JobID control on the subform remains null until I change a value of another control on the subform. This generally isn't a problem, but the subform sets default values if the user doesn't enter any - if the user elects to use all defaults then the record isn't saved as JobID was never set.
Is there a way anyone can think of of forcing the JobID control to link with the parent form as soon as a record is started? I imagine it would be VB code in the parent's on current event. I've tried requerying he subform, but as the correct link hasn't been established this just generates errors.
Is there a way anyone can think of of forcing the JobID control to link with the parent form as soon as a record is started? I imagine it would be VB code in the parent's on current event. I've tried requerying he subform, but as the correct link hasn't been established this just generates errors.