PDA

Click to See Complete Forum and Search --> : Variable to retrieve data from column


TimC
Sep 11th, 2000, 02:47 PM
I need to retrieve data from a recordset. The columns are numbered 45 to 85, and the rows from 1 to 55. To select the correct column I am using a variable and trying to use that to call the column.

Private c_x As Integer
c_x = x

c_CV = rsSample("c_x")

The c_x will not work. If I insert an integer such as 68 into it:

r_CV = rsSample("68")

It will. I need to use a variable. How can I do this?

TimC
Sep 11th, 2000, 03:01 PM
Nevermind, I changed the variable to a string, and got it to work.

Thanks anyway!