When a user wants to download something from my page i want them to enter an email address and store it in an access database. the code below is what i have right now but the SQL statement isn't working. Any help would be great
Table name = tblEmail
Field = txtEmail
<%
emailAdd = Request.Form("email"
SQL = "insert into tblEmail (txtEmail) values (emailAdd)"
dbName = "dsDb"
Set dbCon = Server.CreateObject("ADODB.Connection"
dbCon.Open dbName
dbCon.Execute SQL
%>
I've tested each line and they all work up to the Execute line.
Table name = tblEmail
Field = txtEmail
<%
emailAdd = Request.Form("email"
SQL = "insert into tblEmail (txtEmail) values (emailAdd)"
dbName = "dsDb"
Set dbCon = Server.CreateObject("ADODB.Connection"
dbCon.Open dbName
dbCon.Execute SQL
%>
I've tested each line and they all work up to the Execute line.