Solved

Simple Sales Database

Posted on 2004-10-02
6
2,667 Views
Last Modified: 2010-08-05
I am trying to keep track of my invoices and need to create an access database. The idea is quite simple though i cannot get this to work.

All the orders come in at different times in the week though the order can be from the same person (i.e. they could order on monday and then order on thursday)

This is straight forward one form that does this for me

Next at the end of every week i need to do a query/report that sorts all the orders taken and groups them by customer name and this is  then the invoice (the report is easy though i need to put an invoice number on it this is the wierd part)

At the end of the month i need to accumulate all the invoices for each customer and put them on a statement (invoices from the past 30/31 days)

I have been trying this for ages and cannot get this to work. Does anyone have any ideas or any sample databases to start me off

Regards

Systemworx
0
Comment
Question by:Systemworx
  • 2
6 Comments
 
LVL 41

Expert Comment

by:shanesuebsahakarn
ID: 12209592
Have you looked at the Northwind sample database that comes with Access?
0
 

Author Comment

by:Systemworx
ID: 12211222
Yes i have had a look at the database but each time i start to customise it, it start to mess up

I have done it so that its similar to what i want but i cannot get the statement bit done

Its easier to start a fresh

I just need all the orders to accumulate into a query and give those orders an Invoice number and then all the invoices for a month to accumulate and give this a statement number
0
 
LVL 10

Accepted Solution

by:
calpurnia earned 200 total points
ID: 12215723
Have you considered coming at this from a different angle?

Start with 3 tables:

tblInvoices (with fields InvoiceID, CustomerID, DateInvoiceCreated, DateInvoiceSent)tblCustomers (with fields CustomerID, CustomerName etc.)
tblOrders (with fields  InvoiceID, OrderDate,OrderDetails...)

where tblCustomers is related to tblInvoices on CustomerID, and tblInvoices is related to tblOrders on InvoiceID. Create a query qryOpenInvoices based on tblInvoices which selects those invoices for which DateInvoiceSent is Null.

Make InvoiceID in tblInvoices an Autonumber field.

Create a form that allows you pick a customer from a list, checks to see whether there's a record in qryOpenInvoices matching that CustomerID, and if not, creates a new invoice record. Then open another form based on the invoice record, with a subform showing the rows from tblOrders.

Hope this makes sense.

Karen


0
 
LVL 10

Expert Comment

by:calpurnia
ID: 12443271
Hi Systemworx, how are you getting on with your invoices?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question