Solved

Simple Sales Database

Posted on 2004-10-02
6
2,666 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Familiarize people with the process of utilizing SQL Server views 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 Access…
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…

776 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