The strangest thing!
Here's my code - I keep getting the type mismatch error on the declaration, or even on the element declarations.
I have identical code in 5 other pages and I never got this error before.
dim intCount
for intCount = 0 to ubound(session.Contents("CandidateLocations"
)
'write selected locations to db
'declare 2 arrays to hold field names and values
dim FieldsArray(1)
dim ValuesArray(1)
FieldsArray(0) = "LocationID"
ValuesArray(0) = session.Contents("CandidateLocations"
(intCount)
FieldsArray(1) = "CandidateID"
ValuesArray(1) = session("CandID"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
rsAddLocations.addImmediate FieldsArray, ValuesArray
next
The error is on the dim lines.
It must be some silly mistake, can someone help? Please?
Here's my code - I keep getting the type mismatch error on the declaration, or even on the element declarations.
I have identical code in 5 other pages and I never got this error before.
dim intCount
for intCount = 0 to ubound(session.Contents("CandidateLocations"
'write selected locations to db
'declare 2 arrays to hold field names and values
dim FieldsArray(1)
dim ValuesArray(1)
FieldsArray(0) = "LocationID"
ValuesArray(0) = session.Contents("CandidateLocations"
FieldsArray(1) = "CandidateID"
ValuesArray(1) = session("CandID"
rsAddLocations.addImmediate FieldsArray, ValuesArray
next
The error is on the dim lines.
It must be some silly mistake, can someone help? Please?