K
khanhly246 via AccessMonster.com
hi all
I use MS Access2003 and VBA language
I have a form with many textboxex and 1 button
when I fill all text box and click button, everything's OK
but If I don't fill all textbox I get a error : "run-time error '94' :
Invalid use of Null"
I set require properties in all field is "No" already but I still get the
error message
this is my insert statement :
dbs.Execute " INSERT INTO tablename(field1,field2)
VALUES ('"&Me.textbox1.value&"','"&Me.textbox2.value&"')
I tried to use Nz function already but it's not OK
what should I do now? please help?
best regard
I use MS Access2003 and VBA language
I have a form with many textboxex and 1 button
when I fill all text box and click button, everything's OK
but If I don't fill all textbox I get a error : "run-time error '94' :
Invalid use of Null"
I set require properties in all field is "No" already but I still get the
error message
this is my insert statement :
dbs.Execute " INSERT INTO tablename(field1,field2)
VALUES ('"&Me.textbox1.value&"','"&Me.textbox2.value&"')
I tried to use Nz function already but it's not OK
what should I do now? please help?
best regard