Results 1 to 2 of 2

Thread: Search a database and display info

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    Search a database and display info

    Hello,

    I have a table in an Access database that has 3 fields (field1, field2, field3). In VB6, I want to display information from these fields on a form that has an SSTab control. I have two tabs (Tab0, Tab1) with controls called (ctrl01, ctrl02). The information on the Access table is divided into groups. For example, field1 has records that are divided by a heading for each group. Like this:

    field2
    ------------
    CITY
    boston
    atlanta
    raleigh
    STATE
    massachusetts
    georgia
    north carolina

    So...I want to display everything under "CITY" on ctrl01 of Tab0 and everything under "STATE" on crtl02 of Tab1. How do I do this from withing VB6? Note: field1 is a primary key that has sequential numbers 0 thru whatever...


    Thanks!

  2. #2
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    Use the DAO object
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

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