Results 1 to 6 of 6
  1. #1
    osimini is offline Novice
    Windows XP Access 2003
    Join Date
    May 2009
    Posts
    3

    Problem with combo box

    Headache

    I have been trying for 2 weeks now to to get this to work no success.

    I have tables for E, Cases, CaseEvents, Customers and Reminder.
    I have created a form frmCustomer as mainform.Then another form frmCases. Also created two sub forms called: sfrmCasesEvents, fsubReminder.




    fsubcaseEvent and fsubReminder are to subforms to frmCases


    I am trying to allow the employee to select any employeeID in frmCases cmoEmployeeID field. Once the EmployeeID is selected in frmCases both subforms – fsubCaseEvents and fsubReminder cascade combo boxes are defaulted updated with the EmployeeID selected in the main form frmCases.


    I have built cascading combo boxes before but all have been based upon a one to many relationship.

    The following 4 tables show details of table

    Employee
    EmpD (PK) - autonumber
    Empname - text

    Case
    CaseID (PK) - autonumber
    EmpID - Number

    CaseEvents
    EventID – autonumber

    CaseID - numver
    EmpID - number


    Remember
    RemID - autonumber
    CaseID – number
    EmpID - number


    I am using Access 2003

    Can someone please help before I am having difficulty getting this to work. It is giving me headache. I have done everything possible

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Your description switches back and forth between SubForms and ComboBoxes. It got me a little dizzy. Let's pick one and get it working first. Describe just one form and one SubForm and tell us what you have and what you want to happen.

  3. #3
    osimini is offline Novice
    Windows XP Access 2003
    Join Date
    May 2009
    Posts
    3

    problem combo box

    Please see attached for more explanation to helpm in answering my questions

    Thanks

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    That explains the Combox switching. The EmployeeID fields should be LongInteger fields in the other tables as ForeignKeys. They are not LookUp Fields are they? If you have the LinkChild/MasterFields properties of the SubForm control set to the EmployeeID fields in the respective forms then what you want to happen will happen automatically.

  5. #5
    osimini is offline Novice
    Windows XP Access 2003
    Join Date
    May 2009
    Posts
    3
    Yes, EmployeeID are both lookup fields and foreign keys to the main table. Also, currently I have the LinkChild/Master Fields properties of the subform controls set to CaseID fields in the respective form as link between main and subform.SO are you suggesting that I should change the following:

    1. EmployeeID should not be lookup field in the tables for the subforms where they are foreign key.

    2. To use both CaseID and EmployeeID or EmployeeID alone as the LinkChild/Master for the subform control.

    Please help

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The answer to #1 is an unqualified YES. You can have more than one Link Field by separating them with a ";" in the two properties.

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

Similar Threads

  1. Problem using the combo box Access 2007
    By PATATE in forum Access
    Replies: 11
    Last Post: 05-23-2009, 06:26 AM
  2. Problem with parameter driven combo box
    By clydet2 in forum Queries
    Replies: 0
    Last Post: 04-06-2009, 12:19 PM
  3. Replies: 3
    Last Post: 02-26-2009, 10:17 AM
  4. Problem with Cascading Combo Boxes
    By CushingMT in forum Forms
    Replies: 0
    Last Post: 11-13-2008, 09:44 AM
  5. Replies: 0
    Last Post: 08-17-2008, 12:19 PM

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