LinuxKommy
Technical User
hi,
i'm having a problem with this code
objConn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.Mappath("loginlog.mdb" & "; Jet OLEDBatabase Password="
sqlString = "INSERT INTO Distributor (Company, Date) VALUES ( '" & login & "', #" & Date & "# )"
objConn.Execute sqlString
when i remove the 'date' parts, the query works, so i know it has to do with that section, but when it's there i get a HTTP 500.100 error....how is the date supposed to be formatted here?
thanks,
lk
i'm having a problem with this code
objConn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.Mappath("loginlog.mdb" & "; Jet OLEDBatabase Password="
sqlString = "INSERT INTO Distributor (Company, Date) VALUES ( '" & login & "', #" & Date & "# )"
objConn.Execute sqlString
when i remove the 'date' parts, the query works, so i know it has to do with that section, but when it's there i get a HTTP 500.100 error....how is the date supposed to be formatted here?
thanks,
lk