emaduddeen
Well-known member
- Joined
- May 5, 2010
- Messages
- 171
- Location
- Lowell, MA & Occasionally Indonesia
- Programming Experience
- Beginner
"number of query values and destination fields are not the same" error in sql?
Hi Everyone,
Can you check the syntax of this sql statement?
I get an error that says "number of query values and destination fields are not the same"
This started to happen when I added Address1 to the statement and Address1 is really a column in the database table.
Can you tell me how to correct the syntax?
Truly,
Emad
Hi Everyone,
Can you check the syntax of this sql statement?
I get an error that says "number of query values and destination fields are not the same"
This started to happen when I added Address1 to the statement and Address1 is really a column in the database table.
Can you tell me how to correct the syntax?
VB.NET:
' Check if the parent is already in the database.
'------------------------------------------------
strSqlStatement = _
"SELECT 1 " & _
"FROM Parent " & _
"WHERE FirstName = " & _
"'" & strFirstName & "' " &
"AND LastName = " & _
"'" & strLastName & "' " &
"AND Address1 = " & _
"'" & strAddressLine & "' "
Truly,
Emad