Results 1 to 4 of 4

Thread: This should be easy...but...

  1. #1

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    What is the correct syntax to put the variable in this line of code?

    cboITEM.additem rst(*VARIABLE*)


    (Sorry, I'm not all here today.)
    Normal is boring...

    smh

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    ?? rst() ??
    what is the rst?

    Combo1.AddItem Variable

    is normal....I dont see rst in the help file even
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    Hyperactive Member barrk's Avatar
    Join Date
    Sep 2000
    Location
    My own little world
    Posts
    274
    I do it this way....


    rst.movefirst
    for n = 0 to rst.recordcount - 1
    myvariable = rst("field")
    cboITEM.additem myvariable(n)
    rst.movenext
    next

  4. #4
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    ahh...recordset...

    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

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