A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Problem with invoicing using a subform



 
 
Thread Tools Display Modes
  #1  
Old February 20th, 2007, 09:13 AM posted to microsoft.public.access.tablesdbdesign
zugzy
external usenet poster
 
Posts: 2
Default 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  
Old February 20th, 2007, 09:50 AM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default 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  
Old February 20th, 2007, 10:34 AM posted to microsoft.public.access.tablesdbdesign
zugzy
external usenet poster
 
Posts: 2
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.