My query worked out fine...but I still can't figure out what's wrong with my code...
I have the code below..
if inStr(1,UserName,".") = 0 then
tym = time()
d8 = date()
Fullname = Username
set con = Server.CreateObject("ADODB.Connection")
con.Provider="Microsoft.Jet.OLEDB.4.0"
con.Open Server.Mappath("NewsDB.mdb")
strValues = " '"&Fullname&"', '"&d8&"', '"&tym&"', '"&readers&"' "
SQL = "Insert into Visitors (VisitorName, DateOfVisit, TimeOfVisit, VisNum) values ("&strValues&") "
' response.write sql
con.Execute(SQL)
else...
|