W
W
Hi,
I have several dat fields in a form. All dates are vital to the
application, so I do not want to go to the next field until a valid date is
been filled in.
I want to do that with te AfterUpdateEvent, something like :
Dim dDate as date
if me.DateOne.value is null or isnull(me.dateOne).value then
beep
msgbox ("some text")
me.DateOne.setfocus
else
dDate = me.DateOne.value
me.NextDate.setfocus
endif
This does not work.
Anyone a clue ?
Thank you very much,
W
I have several dat fields in a form. All dates are vital to the
application, so I do not want to go to the next field until a valid date is
been filled in.
I want to do that with te AfterUpdateEvent, something like :
Dim dDate as date
if me.DateOne.value is null or isnull(me.dateOne).value then
beep
msgbox ("some text")
me.DateOne.setfocus
else
dDate = me.DateOne.value
me.NextDate.setfocus
endif
This does not work.
Anyone a clue ?
Thank you very much,
W