dominicall
03-11-2003, 05:07 PM
OK - anyone help me out here???
Am creating an array from checkboxes in a form input (let's call it interests2) - that looks like this ('1','4','5','6')
If there are errors in the form then I want to keep the checked status so am trying this....
While Not rsActivities.EOF
If rsActivities("ActivityID") IN (interests2) Then
checkedstatus = " checked"
Else
checkstatus = ""
End If
......
Wend
which I thought would be fine... but it's not working - grrrr....
The error message I'm being presented with is...
Error in Microsoft VBScript compilation . Code: -2146827271 (0x800A03F9) Expected 'Then'. Line 204, column 30 If rsActivities("ActivityID") IN (interests2) Then
Now I can only assume it's something to do with the commas in the array but can't seem to figure it...
Anyone got any ideas???
Thanks
dominicall :confused:
Am creating an array from checkboxes in a form input (let's call it interests2) - that looks like this ('1','4','5','6')
If there are errors in the form then I want to keep the checked status so am trying this....
While Not rsActivities.EOF
If rsActivities("ActivityID") IN (interests2) Then
checkedstatus = " checked"
Else
checkstatus = ""
End If
......
Wend
which I thought would be fine... but it's not working - grrrr....
The error message I'm being presented with is...
Error in Microsoft VBScript compilation . Code: -2146827271 (0x800A03F9) Expected 'Then'. Line 204, column 30 If rsActivities("ActivityID") IN (interests2) Then
Now I can only assume it's something to do with the commas in the array but can't seem to figure it...
Anyone got any ideas???
Thanks
dominicall :confused: