If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Problem with invoicing using a subform
I am having problems with a form for which i am using to create invoices
The problem i am having is once i have entered the items sold in the subform and click a command button to print the invoice via a report, for some weird reason the items entered are re-arranged in a completely different order. Can anyone tell me why this is happening and what i can do to stop this from happening Any help will be much appreciated Thanks zugzy |
#2
|
|||
|
|||
Problem with invoicing using a subform
You need a way to define the order of the items, so it is consistent.
You probably have 2 tables: - Invoice, with an InvoiceID primary key (for the main form), and - InvoiceDetail (for the line items in the subform.) If you don't have an AutoNumber field in InvoiceDetail, add one. Now open the report in design view. Open the Sorting And Grouping dialog (View menu.) Add an extra row to the dialog, based on the InvoiceDetailID autonumber. The report will now print out the invoice with the line items in the same order they were entered. -- Allen Browne - Microsoft MVP. Perth, Western Australia Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "zugzy" u31888@uwe wrote in message news:6e1499f42aef3@uwe... I am having problems with a form for which i am using to create invoices The problem i am having is once i have entered the items sold in the subform and click a command button to print the invoice via a report, for some weird reason the items entered are re-arranged in a completely different order. Can anyone tell me why this is happening and what i can do to stop this from happening Any help will be much appreciated Thanks zugzy |
#3
|
|||
|
|||
Problem with invoicing using a subform
Thankyou for your reply
I will try your suggestion Hopefully this will be the solution to my problem, it seems like it will do the trick Regards Zugzy |
Thread Tools | |
Display Modes | |
|
|