D
David
Hi,
Quick question.
I have a form on an asp page which is used to add additional users to
the DB, i.e. adding a UserID (PK on table), Password & Email.
The companies are allowed a max of 3 users. If the company only has
the default 1 user and wishes to add another 1 or 2, then the form
displays the current user details, not in text boxes as this is not an
adit data form. The additional user/s can be entered into 1/2 rows of
text boxes, user 2 & 3.
If they decide to add 2 new users, how do I add the additional 2
records to my db table on submit ?
I am using a MySQL DB.
This is the code I have from an update form which can edit the default
user.
How can I change this code to add the 2 new records ?
___________________________________________
<%
vUser = request.form("user")
vPass = request.form("pass")
vEmail = request.form("email")
uSQL = "UPDATE OrderStatusAccess SET "
uSQL = uSQL & "UserID= '" & vUser & "'"
uSQL = uSQL & ", Password = '" & vPass & "' "
uSQL = uSQL & ", Email ='" & vEmail & "'"
uSQL = uSQL & " WHERE CustomerID='" & session("customer") & "';"
Set RS = adoDataConn.Execute(uSQL)
%>
__________________________________________________________
Thanks for your help
David
Quick question.
I have a form on an asp page which is used to add additional users to
the DB, i.e. adding a UserID (PK on table), Password & Email.
The companies are allowed a max of 3 users. If the company only has
the default 1 user and wishes to add another 1 or 2, then the form
displays the current user details, not in text boxes as this is not an
adit data form. The additional user/s can be entered into 1/2 rows of
text boxes, user 2 & 3.
If they decide to add 2 new users, how do I add the additional 2
records to my db table on submit ?
I am using a MySQL DB.
This is the code I have from an update form which can edit the default
user.
How can I change this code to add the 2 new records ?
___________________________________________
<%
vUser = request.form("user")
vPass = request.form("pass")
vEmail = request.form("email")
uSQL = "UPDATE OrderStatusAccess SET "
uSQL = uSQL & "UserID= '" & vUser & "'"
uSQL = uSQL & ", Password = '" & vPass & "' "
uSQL = uSQL & ", Email ='" & vEmail & "'"
uSQL = uSQL & " WHERE CustomerID='" & session("customer") & "';"
Set RS = adoDataConn.Execute(uSQL)
%>
__________________________________________________________
Thanks for your help
David