R
Rafi
I have a command button on my main form (frm_New_Inv) which allows the suer
to toggle between two sub forms (sub_Inv_Details & Sub_Misc_exp). When the
form opens, Sub_Inv_Details is the default sub form and I would like to
prevent the user, via a message, from switching to Sub_Misc_Exp if no data
has been entered on the sub_Inv_details form.
The following code fails to recognize that sub_Inv_details is dirty
With Me.sub_Inv_Details
.SetFocus
End With
If Me.Dirty Then
GoTo Continue
Else
Exit Sub
End If
Continue:
Any and all suggestions are appreciated.
to toggle between two sub forms (sub_Inv_Details & Sub_Misc_exp). When the
form opens, Sub_Inv_Details is the default sub form and I would like to
prevent the user, via a message, from switching to Sub_Misc_Exp if no data
has been entered on the sub_Inv_details form.
The following code fails to recognize that sub_Inv_details is dirty
With Me.sub_Inv_Details
.SetFocus
End With
If Me.Dirty Then
GoTo Continue
Else
Exit Sub
End If
Continue:
Any and all suggestions are appreciated.