Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jan 2002
    Posts
    1,615
    Thanks
    0
    Thanked 1 Time in 1 Post

    Refer to column in a lsit (2002)

    Hi!

    I know I've done this before but can't find my old post and can't find it in my cheat notes. I need to have the data in [InvoiceNumber] = the result in a column that has been filtered. The filter works but I can remember the syntax for the code on the form. I tried
    Me.lstInvoicenumber = me.lstInvoice.Column[6] but I get a compile error. What am I missing?

    Thanks!
    Leesha

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Refer to column in a lsit (2002)

    Use parentheses ( ) instead of square brackets [ ].
    Keep in mind that the first column is numbered 0, so Column(6) is the 7th column.

  3. #3
    Silver Lounger
    Join Date
    Jan 2002
    Posts
    1,615
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Refer to column in a lsit (2002)

    Thanks Hans! Works perfectly! I hope you'll be proud to know that I did remember about the number of the columns, just not the parentheses!

    Leesha

Posting Permissions

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