Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting a date to empty

Status
Not open for further replies.

shaz123

Technical User
Oct 13, 2006
60
DE
If have got a loop, i have a date set to a variable the problem is the time it goes round the secind time round it gives and invalid date, is there a way to clear the date so before starting the next loop it will be set to empty or nothing.
 
You do not show your code, so I can only give you a vague answer: you can set the date variable to null.
 
I tried settng the date to null ny using the follwing code



datMaxDate = Null

I keep getting an error message saying "invalid use of null",

Im trying to set this code to to null
Code:
datMaxDate = Nz(DMax("[Time of Transaction]", "tbl_Delupdate", "[Cylinder Barcode Label] = '" & Nz(stringy1, "") & "'"), #12/31/2099#)
 
shaz123 . . .

If you want this problem solved you gotta post the code! [thumbsup2]

No sense going on any further if you wont! :-(

Calvin.gif
See Ya! . . . . . .
 
Sorry about that, the date functionality seems to be wrking now, havent changed anything but it worked. Thanx for ur help guys.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top