Hi,
i'm trying to create a page were users can go and upload their information.
This is my recordset:
<%
Dim myRs
Dim myRs_numRows
Set myRs = Server.CreateObject("ADODB.Recordset"
myRs.ActiveConnection = MM_myConn_STRING
myRs.Source = "SELECT * FROM users WHERE ID= '"&varUserID&"' "
myRs.CursorType = 0
myRs.CursorLocation = 2
myRs.LockType = 1
myRs.Open()
myRs_numRows = 0
%>
varUserID has the value 1 for the test user.
This is the error:
Data type mismatch in criteria expression.
/bn/myprofile.asp, line 135
line 35 is myRs.Open()
Somehow if I change the query to be (...WHERE ID= 1 " it works perfect.
What am I doing wrong?
Thanks,
sbayter
i'm trying to create a page were users can go and upload their information.
This is my recordset:
<%
Dim myRs
Dim myRs_numRows
Set myRs = Server.CreateObject("ADODB.Recordset"
myRs.ActiveConnection = MM_myConn_STRING
myRs.Source = "SELECT * FROM users WHERE ID= '"&varUserID&"' "
myRs.CursorType = 0
myRs.CursorLocation = 2
myRs.LockType = 1
myRs.Open()
myRs_numRows = 0
%>
varUserID has the value 1 for the test user.
This is the error:
Data type mismatch in criteria expression.
/bn/myprofile.asp, line 135
line 35 is myRs.Open()
Somehow if I change the query to be (...WHERE ID= 1 " it works perfect.
What am I doing wrong?
Thanks,
sbayter