This topic is locked
[SOLVED]

 Using field data VB error

4/23/2010 5:03:41 PM
ASPRunnerPro General questions
I
ianlyonthomas author

I am trying to use 'check if record exists' function in ASPRunner 6.2 build 5242 with MySQL
The user enters their ref (AMCA_No) at login as their user name.

I need to check if they have completed registration before they join an event.

However when I try to get the data from the field AMCA_No I get the following error:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'values'
The code I am using to test the function is below and I would appreciate any assistance.
'** Check if specific record exists ****

dim rsExists

set dal_table=dal.Table("Register")

set rsExists = dal_table.Query("AMCA_Number='90909'","")

if not rsExists.eof then

Response.Write "Yes'" & values("AMCA_No") & "'"
else

Response.Write "no"
end if

rsExists.Close : set rsExists = Nothing

I
ianlyonthomas author 4/23/2010

Must be getting late!
Just realised that AMCA_No is not populated until after Add is processed so need to use Session("UserID").

Still getting the same error using 'values' though.

Sergey Kornilov admin 4/23/2010

I guess you putting this code to the wrong event where values array is not defined. Check what parameters are available in this event.