|
-
Apr 24th, 2003, 11:26 AM
#1
Thread Starter
Junior Member
null fields insert Q
Hi,
I'm trying to insert records to my dbase from my web app. I can get all the data into the appropriate fields...as long as there's an entry. I was trying to do a simple if statement to catch fields left blank, I just can't remember what to do with it when I do!
Code:
dim nl as System.dbNull
If (Name = "") Then
Name = nl.ToString
sql_addStaticValues += " ' " + Name + " ',"
End If
I know you have to insert a dbNull instead or an empty value but am just unsure how to do it.
Thanks
-
Apr 24th, 2003, 11:45 AM
#2
PowerPoster
-
Apr 24th, 2003, 11:50 AM
#3
Thread Starter
Junior Member
sorry...where?
It just keeps saying that it's not compatible with the string value
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|