L
l1c0r
i have to this string;
strDate = Trim(Format(Now, "MM/dd/yyyy"))
then my insert into statement looks like this;
DBInsert.CommandText = "Insert Into Leads " _
&
"(LeadID,StaffMember,LeadFrom,SName,Address,City,State,ZipCode,Sqft,Bedroom,Bath,Price,Phone1,Phone2,Email,DateC,Contact,MailedAddress,EmailedAddress,Callback,Notes)
" _
& "Values (" _
& "'" & strID & "', " _
& "'" & strMember & "', " _
& "'" & strFrom & "', " _
& "'" & strSellers & "', " _
& "'" & strAdd & "', " _
& "'" & strCty & "', " _
& "'" & strSt & "', " _
& "'" & strZip & "', " _
& "'" & strSqft & "', " _
& "'" & strBed & "', " _
& "'" & strBath & "', " _
& "'" & strPrice & "', " _
& "'" & strPhone1 & "', " _
& "'" & strPhone2 & "', " _
& "'" & strEmail & "', " _
& "'" & strDate & "', " _
& "'" & strContact & "', " _
& "'" & strMailAdd & "', " _
& "'" & strEmailAdd & "', " _
& "'" & strCallBack & "', " _
& "'" & strNotes & "')"
I cant insert that string into DateC which is not a datefield, is just
a text field, i tried everything i could. any help on why is this
returning a INSERT INTO STATEMENT syntax error?
strDate = Trim(Format(Now, "MM/dd/yyyy"))
then my insert into statement looks like this;
DBInsert.CommandText = "Insert Into Leads " _
&
"(LeadID,StaffMember,LeadFrom,SName,Address,City,State,ZipCode,Sqft,Bedroom,Bath,Price,Phone1,Phone2,Email,DateC,Contact,MailedAddress,EmailedAddress,Callback,Notes)
" _
& "Values (" _
& "'" & strID & "', " _
& "'" & strMember & "', " _
& "'" & strFrom & "', " _
& "'" & strSellers & "', " _
& "'" & strAdd & "', " _
& "'" & strCty & "', " _
& "'" & strSt & "', " _
& "'" & strZip & "', " _
& "'" & strSqft & "', " _
& "'" & strBed & "', " _
& "'" & strBath & "', " _
& "'" & strPrice & "', " _
& "'" & strPhone1 & "', " _
& "'" & strPhone2 & "', " _
& "'" & strEmail & "', " _
& "'" & strDate & "', " _
& "'" & strContact & "', " _
& "'" & strMailAdd & "', " _
& "'" & strEmailAdd & "', " _
& "'" & strCallBack & "', " _
& "'" & strNotes & "')"
I cant insert that string into DateC which is not a datefield, is just
a text field, i tried everything i could. any help on why is this
returning a INSERT INTO STATEMENT syntax error?