Results 1 to 13 of 13
  1. #1
    JulieBright is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    10

    Customizing the Northwind Access Template help required

    Good afternoon, and thank you for reading this. I am in the process of customising the Northwind Template to suit my business requirements which are that; 1) A customer makes an order of a number of products/activities, these products/activities have suppliers and various venues. I need to make an itinerary based on the activities ordered, numbers of guests, date, venue etc. This I have achieved to a certain extent.

    However, I need to purchase those activities from the supplier and, ideally, provide that supplier with a Purchase Order which details the activitiy, customer purchasing, and date.

    I have the purchase order, no problem, but cant add in the additional fields I need.

    I have not yet been able to achieve this. I think my problem is in the relationships somewhere but I cant work out where or how?

    I have following tables, Customers, Products, suppliers, venues, orders, order details, purchase orders,purchase order details as well as the other tables etc from northwind template which I don't need but haven't deleted. I need to add information to the purchase order from , I think, the order details table as this holds customer name,a required event date, total guests, these are the items I need to advise the suppplier?

    Any ideas gratefully received.
    Last edited by JulieBright; 03-28-2012 at 01:24 PM. Reason: Additional info

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    The activity supplier needs to know the customer this activity is purchased for? I haven't looked at Northwind in a while but I don't think it intended a direct relationship between purchase orders and sales invoices. Product is purchased as merchandise inventory. Sales invoices/receipts list the product ID of item sold, not a specific purchase order. And the reverse is true, purchase orders do not list sales invoices. What you want to do would appear to be a fundamental change in the Northwind structure. Seems you would need a field in Purchase Order Details for the Order Details ID, assuming each customer order can be fulfilled by more than one supplier, and also assumes each purchase order might be providing for more than one customer order.
    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.

  3. #3
    JulieBright is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    10
    Thank you for replying and yes I agree I do think Im majorly changing the layout. Yes, I think adding the Order Details ID may do it but Im not sure how to continue. Customer orders can include activities from one or more supplier, but I would want the purchase order only to deal with one customer order.

    The current query for the Purchase Order works reading :
    SELECT [Purchase Order Details].*, [Qty1]*[Unit Cost] AS[Extended Price], Products.[Product Name], [Order Details].[Quantity]*[TotalGuests] AS Qty1
    FROM Orders LEFT JOIN ((Products INNER JOIN [Purchase OrderDetails] ON Products.[Product ID] = [Purchase Order Details].[Product ID])INNER JOIN [Order Details] ON Products.[Product ID] = [Order Details].[ProductID]) ON Orders.[Order ID] = [Order Details].[Order ID];

    but when I add in the customer ID it tells me "The SQL statement could not be executed because it contains ambiquous outer joins. To force one.. create separate query...."


    SELECT [Purchase Order Details].*, [Qty1]*[Unit Cost] AS[Extended Price], Products.[Product Name], [Order Details].[Quantity]*[TotalGuests] AS Qty1, Orders.[Customer ID]
    FROM Orders LEFT JOIN ((Products INNER JOIN [Purchase OrderDetails] ON Products.[Product ID] = [Purchase Order Details].[Product ID])INNER JOIN [Order Details] ON Products.[Product ID] = [Order Details].[ProductID]) ON Orders.[Order ID] = [Order Details].[Order ID];

    Close but no cigar...





  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Can you post a jpg of your tables and relationships?
    Or a copy of your database in mdb format -- where you have removed any confidential info.
    Last edited by orange; 03-31-2012 at 08:11 AM.

  5. #5
    JulieBright is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    10
    March 31 working.zip

    I hope this has uploaded correctly it is zipped

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722

  7. #7
    JulieBright is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    10

    Hope you can see these, thanks for all the help

    Click image for larger version. 

Name:	Relationships for March 31 working_Page_2.jpg 
Views:	17 
Size:	43.2 KB 
ID:	6965Click image for larger version. 

Name:	Relationships for March 31 working_Page_1.jpg 
Views:	21 
Size:	98.2 KB 
ID:	6966 hope these are readable.

    Thanks

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    I tried the query you say works and get a join syntax error. I don't see how this query can relate Purchases and Orders.

    I don't see that you have modified Purchase Orders or Purchase Order Details to include a field for OrderID.
    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.

  9. #9
    JulieBright is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    10
    I'm trying to save the db as an .mdb but it is proving a little difficult.. I'm trying to strip out all the new bits, and will have another go tomorrow. I do hope that will help you to get a better idea!

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    With 2010, you must create a new db as mdb type and import everything. Is that what you attempted?
    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.

  11. #11
    JulieBright is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    10
    No but I will now, thanks

  12. #12
    JulieBright is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    10

    Copy of my (ongoing) database

    lodgetest.zip

    Heres a copy of my current working database as a .mdb. It didnt copy over any new program items but hopefully will still provide sufficient information, I hope, for you to point me in the right direction.

  13. #13
    Access_Blaster is offline User
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2010
    Posts
    339
    Redesigning templates is a major headache; there will always be some wizard generated piece of code somewhere that keeps nagging at you or worse. I would suggest importing the tables you need into a fresh new DB. Someone else has already gone thru the process of normalizing the tables for you. Break the relationships and delete the dummy info. Add and subtract the fields you need, keeping in mind normalization. Reestablish your relationships using the template as a model. When you add VBA or macros to your new design the code might actually work. Open the template to see how the forms are constructed; if they fit your needs basically use them as a model, but don’t import them. Move on to queries, and reports. Some people will say this is redesigning the wheel, yeah but it’s you're wheel better get used to it.

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

Similar Threads

  1. Customizing the Autonumber field
    By wasim_sono in forum Access
    Replies: 3
    Last Post: 10-24-2014, 03:00 PM
  2. Access to Excel template
    By thart21 in forum Import/Export Data
    Replies: 1
    Last Post: 02-16-2012, 05:49 PM
  3. New to Access - Help Required
    By mccrimmon in forum Access
    Replies: 5
    Last Post: 11-16-2011, 07:30 AM
  4. Access SOP template
    By daveISWS in forum Access
    Replies: 1
    Last Post: 12-02-2010, 05:06 AM
  5. Access Reports using Northwind '07 form
    By racerklm in forum Reports
    Replies: 0
    Last Post: 11-09-2009, 09:08 PM

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