Results 1 to 2 of 2
  1. #1
    charleyh is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2016
    Posts
    1

    Creating an invoice-one Customer ID-multiple Order ID but just want one to show

    I am creating a shop like database where i have a customer ID and order IDs for each different order. One customer can make multiple orders which are identified by the order ID however this produces a problem when creating my invoice as it always shows all the orders that customer has made rather than just one. Attached is an image of the information i have included to run the query.


    How can i get my invoice to just show orders from one day or one specific order for that customer. Otherwise their 'receipt' will show all orders they have ever made with the company and so the total will be wrong.
    I think the problem is that it asks for customer ID or Order ID but i cant get it to work with requiring both,

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Make master/child forms. (Sub form)
    The master form shows the client, the sub form shows the orders by date.
    a button on the header can then open an individual order to show its details.
    Docmd.openform "frmOrder1",,,"[orderID]=" & subForm.form.txtOrderID

    another way, 3 list boxes on a form
    list1 shows clients
    list2 shows orders
    list3 ,details of that order.

    Each time you click lstClient, it filters the orders in lstOrder.
    same w lstOrder. Click lstOrder, the AFTERUPDATE event would filter the contents of lstOrderDetails.

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

Similar Threads

  1. Replies: 2
    Last Post: 09-14-2015, 09:01 AM
  2. Invoice/Customer Database
    By gebmiller1984 in forum Access
    Replies: 5
    Last Post: 01-15-2015, 04:17 PM
  3. Replies: 2
    Last Post: 06-18-2012, 03:33 PM
  4. Email Each Invoice to each customer
    By snehal0909 in forum Database Design
    Replies: 2
    Last Post: 06-12-2012, 02:27 PM
  5. Customer Invoice Strategy
    By ChuckColeman1812 in forum Database Design
    Replies: 2
    Last Post: 03-12-2011, 09:00 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