date and time

fatbloater

Registered User.
Local time
Today, 11:29
Joined
Sep 28, 2004
Messages
36
i have the following code on a button

if isdate(start_date) = false then
start_date = now
else
end if

This is looking at start date and if it is null entering the date and time (now) else leae what is in there. The problem i have is if the user keeps pressing the button then a new date and time (now) gets entered.

I need to have the button formatted like this, can anybody help?
 
Last edited:
I use the following to test for Null. It has never failed me:

if me!start_date & "" = "" then
me!start_date = now
end if

If there's other code that gets inapprpriately executed on the OnClick event, disable the button when start_date is set; endabling it of course appropriately.
 

Users who are viewing this thread

Back
Top Bottom