Results 1 to 2 of 2

Thread: Query

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Seattle
    Posts
    954
    If I would like to query a DB and place a certain field into a list box. How would I do this? Example:

    fieldname = name

    place all name field entries into a list box that fit the following criteria:

    certain ID
    certain date(s)
    etc

    All of the above are field names in the DB.

  2. #2
    Hyperactive Member
    Join Date
    Nov 2000
    Location
    Mexico City
    Posts
    306

    Talking

    Fill your recordset, then:

    list1.clear
    do while not rec.eof
    list1.additem rec.fields("your field").value
    rec.movenext
    loop
    rec.close


    If things were easy, users might be programmers.

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