Insert Statement |
5/9/2008 11:20:56 | |
| ASPRunnerPro General questions | ||
|
Please help me. |
||
|
|
Sergey Kornilov admin 5/9/2008 |
strSQLInsert = "INSERT INTO dbo.Narcotic_Audit (Narcotic, DateTime, QuantityDispensed, Unit, NewBalance, UserID, x_Lastname, x_Firstname) values ( " & dict("Narcotic") & "," & dict("DateTime") & "," & dict("QuantityDispensed") ...
|
|
|
|
jadach authorDevClub member 5/9/2008 |
|
Thank you. I get confused with what you said about single quotes for text feilds. All my values are as follows and it works strSQLInsert = "INSERT INTO dbo.Narcotic_Audit (Narcotic, DateTime, QuantityDispensed, Unit, NewBalance, UserID, x_Lastname, x_Firstname) values ( " & dict("Narcotic") & "," & dict("DateTime") & "," & dict("QuantityDispensed") ...
|
|
|
|
Sergey Kornilov admin 5/11/2008 |
|
SQL standard requires to wrap text values by single quotes. insert into table (field) values ('text')
insert into table (field) values (text)
|
|
|
|
jadach authorDevClub member 5/11/2008 |
|
Thank you for all your help. I'll get it! SQL standard requires to wrap text values by single quotes. Right: insert into table (field) values ('text')
insert into table (field) values (text)
|
|