Page 2 of 2 FirstFirst 12
Results 16 to 27 of 27
  1. #16
    losttrail is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    13
    Thanks, but no.

    The only table I'm drawing from is Customer Contacts. There are many more fields in this table, but I only need these 5.

    Right now the cboPhysician draws the 5 fields of data from qryPhysician. When I click on the arrow for the cboPhysician, I see all 5 columns of data. However, once I select a physician, then I only see the last name.



    I did get some semblence of what I'm working towards by:

    The boxes for Facility, City, State, I created as text boxes: txtFacility, txtCity, txtState.

    In Design View, I gave each text box a 'Criteria' of:

    =[cboPhysician].[Column](2) (for Facility)

    =[cboPhysician].[Column](3) (for City)

    =[cboPhysician].[Column](4) (for State)

    This returns the proper Facility, City and State in each text box, except that it only selects the first record for each Facility. Even if there are 20 physicians for a facility and I select the 10, 15, 18, etc., it only displays the first record.

  2. #17
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What is the relationship between [Customer Contacts] and [Physicians]?

  3. #18
    losttrail is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    13
    Physicians is from two fields in the Customer Contact table; Last_Name and First_Name

  4. #19
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Post #17 asks if there is there only one Physician per contact or many?

  5. #20
    losttrail is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    13
    Many. Each facility can have multiple physicians.

  6. #21
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    So why does your table only have fields for one Physician's name?

  7. #22
    losttrail is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    13
    Hopefully I can get a screen capture attached here.

    Customer Contacts is the table I am drawing my data from. It has many columns but for the form frmScheduling, I only need data from 5 columns. As you can see, each Facility (Account Name) has multiple physicians.

    frmScheduling is the form I am trying to populate.

    frmScheduling-DV is the Design View of the form.

    I hope this helps and thanks.

  8. #23
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    So you have a separate record for each physician in a facility?

  9. #24
    losttrail is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    13
    Apparently. I have inherited all this existing DB and am sure that there is a more logical way to approach this.

    Maybe the existing Customer Contacts table needs to be revamped into multiple tables?

    It's been so long (1998) since I've done anything with Access, and even then it wasn't a lot.

  10. #25
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Normally a 1:many relationship is represented in Access with a MainForm/SubForm arrangement with the MainForm in single view mode and representing the 1 side of the relationship and the SubForm in Continuous Form mode representing the many side of the relationship. That requires at least two tables with the PrimaryKey of the 1 side table in the many side table as a ForeignKey field.

  11. #26
    losttrail is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    13
    At this point the Customer Contacts tables has no relationships.

  12. #27
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    There is a 1:m relationship between a Facility and the Physicians.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Combo boxes Access 2007
    By Scotlands Lion in forum Access
    Replies: 13
    Last Post: 08-05-2014, 02:40 AM
  2. Access 2007 - Form Creation
    By p4ck3tl055 in forum Forms
    Replies: 5
    Last Post: 03-18-2010, 12:43 PM
  3. Replies: 0
    Last Post: 03-18-2010, 07:31 AM
  4. View all option in combo box in ms access 2007
    By amit_amt in forum Programming
    Replies: 0
    Last Post: 03-18-2010, 01:08 AM
  5. Problem using the combo box Access 2007
    By PATATE in forum Access
    Replies: 11
    Last Post: 05-23-2009, 06:26 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