G
Guest
I have frmMain and 2 subfoms (control names on frmMain - frmTransSub and
frmLOBSub). Both subs are linked to frmMain. I am having problem going to a
new record on the frmLOBSub FROM frmTransSub.
On the frmTransSub_AfterUpdate I have:
If checkDuplicate Then
Forms!frmMain!frmLOBSub.Form!FMS.SetFocus
Else
DoCmd.GoToRecord acDataForm, Forms!frmMain!frmLOBSub.Form, acNewRec
End If
The problem is in the else statement. I get the wrong data type in
expression error. If I put quotes around the form reference, I get the form
not open error.
Any ideas?
frmLOBSub). Both subs are linked to frmMain. I am having problem going to a
new record on the frmLOBSub FROM frmTransSub.
On the frmTransSub_AfterUpdate I have:
If checkDuplicate Then
Forms!frmMain!frmLOBSub.Form!FMS.SetFocus
Else
DoCmd.GoToRecord acDataForm, Forms!frmMain!frmLOBSub.Form, acNewRec
End If
The problem is in the else statement. I get the wrong data type in
expression error. If I put quotes around the form reference, I get the form
not open error.
Any ideas?