I am working on a user registration page. It was initally designed with a Do While Loop and I have been encountering latency issues because it is looping through 35,000+ records in SQL before entering a new record.
I am attempting to change it to an INSERT INTO query. The DB has a Name, Email, Password, Salt, ID_Code, HTMLformat, and Active field. Where I am running into an issue is how to get the following code
If blnEncryptPasswords Then .Fields("Salt") = strSaltValue
.Fields("ID_Code") = strUserCode
.Fields("HTMLformat") = blnHTMLformat
.Fields("Active") = False
into my insert statement?
'Insert Statement
strSQL = "INSERT INTO " & strDBTable & " ([Name],,[Password]) VALUES " & _
"('" & strUserName & "', " & _
"'" & strEmail & "' " & _
"'" & strPassword & "' " & _
")"
I am attempting to change it to an INSERT INTO query. The DB has a Name, Email, Password, Salt, ID_Code, HTMLformat, and Active field. Where I am running into an issue is how to get the following code
If blnEncryptPasswords Then .Fields("Salt") = strSaltValue
.Fields("ID_Code") = strUserCode
.Fields("HTMLformat") = blnHTMLformat
.Fields("Active") = False
into my insert statement?
'Insert Statement
strSQL = "INSERT INTO " & strDBTable & " ([Name],,[Password]) VALUES " & _
"('" & strUserName & "', " & _
"'" & strEmail & "' " & _
"'" & strPassword & "' " & _
")"