basic question.. if value is not null

antonyx

Arsenal Supporter
Local time
Today, 22:23
Joined
Jan 7, 2005
Messages
556
hi.. just a quick question...

i want my script to run if the value of txtjobdate is not empty..

im using this at the moment

Code:
If Me.txtjobdate.Value <> "" Then

it works when the textbox is not null.. but when it is null.. rather than ignore the script it tells me Run time error 94, invalid use of Null

so what is the best way to declare if a textbox is not null?
 
If Me.txtjobdate & "" <> "" Then

should sort it

Peter
 
cheers.. that did sort it
 

Users who are viewing this thread

Back
Top Bottom