|
-
Apr 26th, 2005, 05:13 AM
#1
Thread Starter
Addicted Member
sql insert problem
Dear All
I collecting data from an aspx form. my problem is that not all the fields are required and the user may leave them empty.
then i want to insert values into tPerutim table in SQL server.
i wrote the folowing sql statement
Dim ShemPrati, ShemMishpacha As String
ShemPrati = txtShemPrati.Text
strSql = "Insert Into tPerutim " & _
"(Taz, ShemPrati) " & _
"Values " & _
"(" & txtTaz.Text & ", " & ShemPrati & ")"
the problem is that ShemPrati can be empty
and the statement is collapse
how can i fix it???
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
|