Results 1 to 2 of 2
  1. #1
    aamer is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Jul 2010
    Location
    Pakistan
    Posts
    276

    Connecting 2 Combo Boxes Problem

    Help Needed.

    I have a combo box "Combo28" on Purchase form and I have a Combo box "Combo464" on Admin Purchase subform
    I want if I select "Combo28" with "Dimple Cottage Works" It should show me the Price list of Dimpi in "Combo464" & If "XYZ Exports Ltd" It should show me the Price list of coke

    How can I do this.

    For better understanding I have attached Sample Database.



    Combo Sample DB.zip

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    I see a lot of problems with data structure.

    You have an autonumber ID field in Company table yet you have the company name field set as primary key and save the company name as foreign key in Purchases.

    What is Purchases field called [Purchased From Company] for?

    No reason to save both company ID and company name in Purchases. Also no reason to have both fields in the Master/Child links properties. Only the primary/foreign key fields should be used.

    I don't see anyway to do what you want. I don't see any relationship between company and price list. There is no way to know which PriceList records go with which companies.

    Looks like each purchase is limited to a single product. Is that what you want?



    BTW, misspelled "Entery" should be Entry in the popup message. Catagory should be Category.

    Also advise no spaces or special characters/punctuation (underscore is exception) in object names. Better would be BillNum or Bill_Num instead of Bill #.
    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. Connecting periods from different tables - database design problem
    By sockswithsandals in forum Database Design
    Replies: 4
    Last Post: 04-15-2012, 08:39 AM
  2. Cascading Combo Boxes Requery Problem
    By Jo22 in forum Forms
    Replies: 9
    Last Post: 01-28-2012, 09:41 AM
  3. Replies: 4
    Last Post: 01-22-2012, 10:48 PM
  4. Cascading Combo boxes Problem
    By aamer in forum Access
    Replies: 12
    Last Post: 04-03-2011, 07:11 AM
  5. Problem with Cascading Combo Boxes
    By CushingMT in forum Forms
    Replies: 0
    Last Post: 11-13-2008, 09:44 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