D
Dino M. Buljubasic
I'd like to be able to insert some values in a table. The values are text
box fields. If a text box field is empty, then NULL should be inserted in a
table field.
e.g.
strSQL = "INSERT INTO calOwners(first_name, last_name, " & _
"username, password, " & _
"email_address) " & _
"VALUES ('" & txtFirst.Text & "', '" & _
txtLast.Text & "', '" & _
txtUserName.Text & "', '" & _
TtxtPassword.Text & "', '" & _
txtEmail.Text & ")"
if any of txt fields is empty, instead of empty string I would like to
insert NULL value.
How to do that?
Thank you,
Dino
box fields. If a text box field is empty, then NULL should be inserted in a
table field.
e.g.
strSQL = "INSERT INTO calOwners(first_name, last_name, " & _
"username, password, " & _
"email_address) " & _
"VALUES ('" & txtFirst.Text & "', '" & _
txtLast.Text & "', '" & _
txtUserName.Text & "', '" & _
TtxtPassword.Text & "', '" & _
txtEmail.Text & ")"
if any of txt fields is empty, instead of empty string I would like to
insert NULL value.
How to do that?
Thank you,
Dino