Results 1 to 2 of 2

Thread: Variable to retrieve data from column

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    43
    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?
    Tim

    VB6, SP4
    GT Vengeance

  2. #2

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    43
    Nevermind, I changed the variable to a string, and got it to work.

    Thanks anyway!
    Tim

    VB6, SP4
    GT Vengeance

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width