G
Guest
When I try to run the code below, i get an error message saying
"The object 'Forms!Runs!frm_Run_Test' isn't open
I don't understand, because the form is actually open?
The code below is to take a value from one form and pass it to a control on
another form, both forms are on the same tab page, both forms are Subforms
on a master 'Runs' Form. They are positioned side-by-side, and i can see them
both, so how come Access say's it's not open?
The Code on the selector form that passes the contents of
'Waypoint_Selector' to the field 'Waypoint_Combo' on the target form/field.
The code errrors on this line:
DoCmd.GoToRecord acDataForm, "Forms!Runs!frm_Run_Test", acNext
Private Sub Waypoint_Selector_Click()
If IsNull(Forms.Runs.[frm_Run_Test].Form.[Waypoint_Combo]) Then
Forms.Runs.[frm_Run_Test].Form.[Waypoint_Combo] = Me.Waypoint_Selector
Else
DoCmd.GoToRecord acDataForm, "Forms!Runs!frm_Run_Test", acNext
End If
"The object 'Forms!Runs!frm_Run_Test' isn't open
I don't understand, because the form is actually open?
The code below is to take a value from one form and pass it to a control on
another form, both forms are on the same tab page, both forms are Subforms
on a master 'Runs' Form. They are positioned side-by-side, and i can see them
both, so how come Access say's it's not open?
The Code on the selector form that passes the contents of
'Waypoint_Selector' to the field 'Waypoint_Combo' on the target form/field.
The code errrors on this line:
DoCmd.GoToRecord acDataForm, "Forms!Runs!frm_Run_Test", acNext
Private Sub Waypoint_Selector_Click()
If IsNull(Forms.Runs.[frm_Run_Test].Form.[Waypoint_Combo]) Then
Forms.Runs.[frm_Run_Test].Form.[Waypoint_Combo] = Me.Waypoint_Selector
Else
DoCmd.GoToRecord acDataForm, "Forms!Runs!frm_Run_Test", acNext
End If