> It is still doing the same thing. Plus I have to be able to stop the person
> from entering any data before the ship date is entered. Any idea?
>
> "Al Campagna" wrote:
>
>> Spencer,
>> Try using your code in the OnEnter event of Item.
>> --
>> hth
>> Al Campagna
>> Candia Computer Consulting - Candia NH
>>
http://home.comcast.net/~cccsolutions>>
>> "Spencer" <Spencer[ at ]discussions.microsoft.com> wrote in message
>> news:0854CB6F-86D1-4196-AB1F-80EEC9C87224[ at ]microsoft.com...
>> >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,
>>
>>
>>