G
Guest
I am having trouble understanding the syntac to reference a subform from the
mainform. As is suggested in the form , I am using
http://www.mvps.org/access/forms/frm0031.htm for a reference. I have a cmd
button on the main form to close it. Before I close form I want to be sure
certain controls on subform are not null.
Main form - 'frmRMAExceptionHeader'
SubForm - 'frmRMAExceptionDetail'
The reference suggests Me!Subform1.Form!ControlName
So the code I have is
If
IsNull(Me!frmRMAExceptionDetail.frmRMAExceptionHeader!txtDateofRMAException)
Then
Me!frmRMAExceptionDetail.frmRMAExceptionHeader!txtDateofRMAException.SetFocus
End If
I am getting "object doesnt support this property or method"
mainform. As is suggested in the form , I am using
http://www.mvps.org/access/forms/frm0031.htm for a reference. I have a cmd
button on the main form to close it. Before I close form I want to be sure
certain controls on subform are not null.
Main form - 'frmRMAExceptionHeader'
SubForm - 'frmRMAExceptionDetail'
The reference suggests Me!Subform1.Form!ControlName
So the code I have is
If
IsNull(Me!frmRMAExceptionDetail.frmRMAExceptionHeader!txtDateofRMAException)
Then
Me!frmRMAExceptionDetail.frmRMAExceptionHeader!txtDateofRMAException.SetFocus
End If
I am getting "object doesnt support this property or method"