Results 1 to 4 of 4

Thread: ComboBox question vb6

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2005
    Posts
    118

    ComboBox question vb6

    Hi All,
    I am really struggling getting a combox to work.
    I am using an access2k database basically with 2 tables. Products and Location. The products table has a location id field (number) and the Location field has a location id field(number) with a location description field(text).I am using ado code to link to the database.
    Ok..I have a form showing all the product records but I want to be able to have a combo box on the form that lets me choose a location ie shows all the available locations from the location table and saves the choice to the Products table in the location id field.

    This is a 1 minute job in access2k but how do I do it in VB6???????
    Hope some wiz can give me the answer.
    Thanks

  2. #2
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: ComboBox question vb6

    Quote Originally Posted by franki
    Hi All,
    I am really struggling getting a combox to work.
    I am using an access2k database basically with 2 tables. Products and Location. The products table has a location id field (number) and the Location field has a location id field(number) with a location description field(text).I am using ado code to link to the database.
    Ok..I have a form showing all the product records but I want to be able to have a combo box on the form that lets me choose a location ie shows all the available locations from the location table and saves the choice to the Products table in the location id field.

    This is a 1 minute job in access2k but how do I do it in VB6???????
    Hope some wiz can give me the answer.
    Thanks
    Could you post the field names as well as some sample data?
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2005
    Posts
    118

    Re: ComboBox question vb6

    That was quick!
    I have posted the access2k database. it also has a form called products which is what i am trying to replicate in vb.
    Many thanks.
    Attached Files Attached Files

  4. #4
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: ComboBox question vb6

    Quote Originally Posted by franki
    That was quick!
    I have posted the access2k database. it also has a form called products which is what i am trying to replicate in vb.
    Many thanks.
    Check out the attached Project
    Attached Files Attached Files
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "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