PDA

Click to See Complete Forum and Search --> : Null Values


casox
Jan 4th, 2000, 10:08 PM
Using VB6.0 and an Access database, I'm faced with the possibility of having a blank field which gives me a null value error. How can I solve this? I've tried putting "" as a default value but this doesn't work.

Thanks,

casox

jpark
Jan 5th, 2000, 12:33 AM
You can check null value with IsNull(rsCustomer("Addr2")), or use Text1 = rsCustomer("Addr2") & "" to avoid null error.

Joon

Clunietp
Jan 5th, 2000, 01:18 AM
If you want to allow a null value in your Access database, set the "ALLOW NULLS" property of the field to TRUE. You can do this in MS Access.

compuGEEK
Jan 5th, 2000, 04:41 AM
form.txtField=format(rs("Field"))

Using this automatically changes a null to ""



------------------
CompuGEEK