Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have created an inventory control & sales system for a local shoe showroom. One customer can buy one or more shoes at the same time. Each purchase must have a receipt to be issued as an invoice to the customer.
At the same time the data will be saved in an MS Access database table. I have no any doubts about the saving data within MS Access database.
But I have a question that how can I be able to print such an invoice to each individual customer using Crystal Report?

Actually I am concerning about that how am I able to extract the data records that owns to a single customer? The most recent customer that has purchased the shoes?
Posted
Updated 29-Nov-12 4:27am
v3

1 solution

What it sounds like you are struggling with is how to know who to print the invoice out for. You put the data into the Access database and then you need to print an invoice but you aren't sure which invoice to print. My recommendation would be to put an indicator value (a true/false field in Access will work) on each invoice entry that indicates if the entry has been printed. Then, you simply print all the ones that haven't been printed and then mark those that were printed as printed. The end result is that you don't have to figure out or guess which customer needs to have an invoice printed. You just print the unprinted ones.
 
Share this answer
 
Comments
Chiranthaka Sampath 29-Nov-12 12:05pm    
Ok pal I will explain what I need to know!

1. A customer comes to the shop and he/she buys some shoes from the shop.
2. That information will be stored according to the following data.



ID - Autonumber PRIMARY KEY - This will be allocated to each purchase
Date - Purchasing Date
Time - Purchasing Time - Both the time and the date are getting from the system date & time.
Item Description - The description of the item
QTY - Quantity
Price
Value - QTY * Price

Now I want to add these data in a report like in an invoice. This is doing in a POS system but I don't know how to print the receipt!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900