PDA

View Full Version : using a variable as a key


codefox
12-04-2002, 10:33 AM
t = oRSFeedbackItems("fd_item_id") & "_rem"
sItemRemarks = oRSFeedbackValues(t)

This gives an error "Wrong number of arguments or invalid property assignment: 'oRSFeedbackValues'"

How can I use the value of t as the key in oRSFeedbackValues?

Thanks

glenngv
12-04-2002, 10:38 AM
try:
sItemRemarks = oRSFeedbackValues.Fields(t)

is oRSFeedbackValues a valid recordset object?