Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    RuffianRan's Avatar
    RuffianRan is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    51

    Form won't let me add Subform due to Relationship between Source Tables

    I'll start off by saying that this is for a class so I'm working with instructions. We are working on a Custom Form in Design View, frmTireOrders, which has a ComboBox at the top containing the CustID. In the last step they had us create a Query, qryInvoiceTotal.



    In this step they want us to ad a subform but based on the qryInvoiceTotal and include all the fields but when I go to click "Next" after selecting "Show qryInvoiceTotal for each record in the tblCustomer using the CustID" I get an error message saying -
    "The link you selected can't be used. This link was created based on relationships between source tables.To use this link, you must go back to the previous page and include the missing fields."

    The only relationships we have in this database are a one-to-many between the tblCustomer to the tblSales with the CustID and a one-to-many from the tblTires to the tblSales with the PartID.

    I saw someone ask elsewhere for a copy of the database, so let me try to include that now. Nope, the file size exceeds the Forum Limits. I went back, made a copy and cut out all but the 3 Tables, the Query, and the Form but after Compact & Repair a couple times it's still 36kb too big

  2. #2
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    try to zip the file first.

  3. #3
    RuffianRan's Avatar
    RuffianRan is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    51
    Access Help.zip I had thought about that but wasn't sure

  4. #4
    RuffianRan's Avatar
    RuffianRan is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    51
    I don't think any of the other clutter that I cut out is necessary but if you find you're missing something I can zip the original.

  5. #5
    orange's Avatar
    orange is online now Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Not sure we are missing anything. My guess is you could include your entire database (no deleting of objects necessary) if you do a compact and repair and then a zip.

    You my get some ideas and insight by reading through this thread related to Orders Products etc.
    There are some key concepts.

  6. #6
    RuffianRan's Avatar
    RuffianRan is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    51
    Here's the whole thing. The assignment is due tonight, I'm trying to search the web for answers but it's not working.
    Attached Files Attached Files

  7. #7
    RuffianRan's Avatar
    RuffianRan is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    51
    I didn't understand much of what I read on that thread...I'm not really overly literate in code. Not positive I compacted & repaired after my last form label adjustments, hope that didn't matter. Love the cat, btw

  8. #8
    orange's Avatar
    orange is online now Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I looked at your database and form. Is the attached similar to what you are trying to do?

    Let me know and give me some info of what you are trying/tried and results.
    Attached Thumbnails Attached Thumbnails TireSalesInvoice.jpg  

  9. #9
    RuffianRan's Avatar
    RuffianRan is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    51
    Yes, but I'm trying to add a subform under the Total of Invoices that includes all the fields in the qryInvoiceTotal Query

  10. #10
    RuffianRan's Avatar
    RuffianRan is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    51
    In this step they want us to add a subform based on the qryInvoiceTotal and include all the fields but when I go to click "Next" after selecting "Show qryInvoiceTotal for each record in the tblCustomer using the CustID" I get an error message saying - "The link you selected can't be used. This link was created based on relationships between source tables.To use this link, you must go back to the previous page and include the missing fields."

  11. #11
    orange's Avatar
    orange is online now Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I was attempting to use the CustomerId combo top right and you qryInvoiceTotal and get a jpg.

    I am seeing different totals but same cust First and Last even though I'm selecting a different CustID??

    The link I suggested shows and discusses the typical set up of

    Customer-->Order---->OrderLineItem<---Product

    which is not what you have. So now it's down to some investigation without
    a) doing your homework assignment, and
    b) not causing you too much diversion.

  12. #12
    RuffianRan's Avatar
    RuffianRan is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    51
    This was an incorrect post
    Last edited by RuffianRan; 03-07-2016 at 10:52 PM.

  13. #13
    orange's Avatar
    orange is online now Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Hang in. Forget the code. It was a thread dealing with a few concepts and a poster who was very hesitant to give info.

    What is this course you're doing?
    What is the big issue at the moment? The message says you're trying to use something that wasn't included or was not appropriate.
    In your own words --simple terms -- what should go on the main form, what should go on the subform, and how would those things be related (in order to keep the subform info in sync with main form)?

  14. #14
    RuffianRan's Avatar
    RuffianRan is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    51
    It's called Expert Access in Computer Science. I took Access Level 1 last semester in Business Applications. I'm trying to get my MS Office Specialist Certificate and the end goal was to go on to get my Associates in Interactive Media but I'm not so sure about that now.

    So my ComboBox isn't working either. I wasn't supposed to add the Calculated Total of Invoices field until after the subform I think. I got the instructions all mixed up. I kept trying to add the InvAmt field to the Subform when I was supposed to add it to the Query. That's how that got there already. Should I delete that field and try again? But still, why isn't my ComboBox working?

  15. #15
    RuffianRan's Avatar
    RuffianRan is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    51
    Didn't work

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

Similar Threads

  1. form/subform relationship
    By vientito in forum Programming
    Replies: 7
    Last Post: 10-27-2014, 06:53 PM
  2. Replies: 5
    Last Post: 10-14-2014, 04:08 PM
  3. Form/Subform relationship help
    By bkirsch in forum Forms
    Replies: 13
    Last Post: 01-27-2012, 01:24 PM
  4. Form/Subform relationship
    By justhininabouti in forum Forms
    Replies: 2
    Last Post: 11-28-2011, 09:07 PM
  5. Replies: 0
    Last Post: 02-16-2006, 09:11 AM

Tags for this Thread

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