Using a textbox as an example,
Code is in the main form:
Code:
If IsNull(Me.sfrMySubForm.Form.txtMyTextBox) Then
'Do something here with code.
Else
'Do something else here with code.
End If
Code is in the subform:
Code:
If IsNull(Me.txtMyTextBox) Then
'Do something here with code.
Else
'Do something else here with code.
End If
Use the
real names instead of
sfrMySubForm and
txtMyTextBox.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division