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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Null Field

Status
Not open for further replies.

svsuthar1

Programmer
Jul 6, 2004
135
US
I have a check on my Action form where it checks for the field to be not 0 to add to the database... is it possible to be Null... I am not haveing any luck on that...I have tried the following things...

not ISnull(field) and field <> ""

please advise

thanks,

Samir
 
I am trying that, but it give me syntax error Type mismatch string "". The thing is that it stops only when it finds a null value for that field else it saves the other information to the database.

Samir
 
Please write the specific line that is generating the error. Also, it might be a good idea to response.write out that variable (the strQuantity variable) to see what it is actually producing.

------------------------------------------------------------------------------------------------------------------------
If you don't have a sense of humor, you probably don't have any sense at all.
- Anonymous
 
I think strQuantity is a string and will never be null. It can only be empty or greater. Try
Code:
If len(trim(strQuantity)) > 0 Then
 
I am sorry guys I got all of you involved on this... I was updating my back file and not the file that need it to be updated... sorry all for the confusion... It's working with simple strQuantity <> "" Then...


I apologize for this post... it should not have been posted... I give all of you star...

Samir
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top