Results 1 to 2 of 2
  1. #1
    smorris4804 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Posts
    1

    Exclamation Creating a Form with 2 combo boxes and a text box

    Hey everyone.



    I need help creating a form using 2 combo boxes and a text box. The first combo box will be for example:Provider degree. 2nd combo box will be:Specialty that was sent in and i will need the text box to populate based on what combo box 1 and 2. I have a 3 tables for each named Degree, Specialty on CR and Specialty to Key. all Containing the need information. I want to use VBA and SQL. I have never used either but have good knowledge of Access 2007. Can some help? I was thinking maybe i could create queries to populate each table with that data and use the queries in the form? HELP please? Thanks in advance

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Do your comoboboxes need to be dependent? I.e. should the RowSource for combobx 2 be dependent on what is selected in combobox1? If so, check this tutorial http://www.datapigtechnologies.com/f...combobox2.html

    Maybe table joins can serve to determine the Specialty to Key value. Would need to know more about table structures and relationships.

    Can use code to set the value of textbox. The trick is figuring out where to put the code - what event will trigger retrieving the value? Could be in the AfterUpdate events of the comboboxes or a button 'Get Specialty to Key' click.

    I only use VBA but possibly macros could accomplish this.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 9
    Last Post: 06-04-2014, 10:45 AM
  2. Replies: 0
    Last Post: 12-02-2010, 11:59 AM
  3. Replies: 15
    Last Post: 09-18-2010, 01:19 PM
  4. Replies: 3
    Last Post: 05-25-2010, 02:16 PM
  5. Creating Report using Text boxes & db fields
    By Nancy J. in forum Reports
    Replies: 13
    Last Post: 07-20-2009, 07:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums