S
Spencer
I have three forms:
frmCustomers; frmOrders; sfrmOrder Details
frmCustomers is opened and it has several tabs one of which is for orders
where I have the frmOrders with the subform sfrmOrder Details. On the
frmOrders I have a field labeled ShipDate, and on the subform I have a field
labeled Item. The ship date must be entered before the item so on the Got
Focus event of txtItem I put:
If IsNull(Me.Parent.Controls![ShipDate]) Then
MsgBox "You must enter a ship date"
Me.Parent.Controls![ShipDate].SetFocus
End If
This worked until I closed the form and reopened the main form,
frmCustomers. Before opening the form the message box poped up saying I had
to enter the ship date. How do I keep the message box from appearing until I
go to frmOrders and enter data?
Thanks in advance for your help.
I have a form called frmCustomers. In this form I have several tabs one of
which is for orders. The order form, called frmOrders, has a subform called
sfrmOrder Details. frmOrders requires that a ship date be entered before item
details in the subform can be entered. To prevent entering of data before the
ship date is entered on the Got Focus event on txtItemin the subform,
sfrmOrder Details,
frmCustomers; frmOrders; sfrmOrder Details
frmCustomers is opened and it has several tabs one of which is for orders
where I have the frmOrders with the subform sfrmOrder Details. On the
frmOrders I have a field labeled ShipDate, and on the subform I have a field
labeled Item. The ship date must be entered before the item so on the Got
Focus event of txtItem I put:
If IsNull(Me.Parent.Controls![ShipDate]) Then
MsgBox "You must enter a ship date"
Me.Parent.Controls![ShipDate].SetFocus
End If
This worked until I closed the form and reopened the main form,
frmCustomers. Before opening the form the message box poped up saying I had
to enter the ship date. How do I keep the message box from appearing until I
go to frmOrders and enter data?
Thanks in advance for your help.
I have a form called frmCustomers. In this form I have several tabs one of
which is for orders. The order form, called frmOrders, has a subform called
sfrmOrder Details. frmOrders requires that a ship date be entered before item
details in the subform can be entered. To prevent entering of data before the
ship date is entered on the Got Focus event on txtItemin the subform,
sfrmOrder Details,