hi, i suggest u to use parameters for ur sql statement,
dim MySQL2 as string= "INSERT INTO Visitors (Name, TimeIn) Values (@Name, @TimeIn)"
dim objCmd2 as New OleDbCommand(MySQL2, Conn)
with objCmd2.Parameters:
.Add(New OleDbParameter("@Name", Request.Cookies("VisName").Value ))
.Add(New OleDbParameter("@TimeIn", Request.Cookies("TimeIn").Value))
end with
some thing like this. check this out for more infomation.
http://aspnet101.com/aspnet101/tutorials.aspx?id=1
Regards
life's Ng