Personal Development for Smart People Forums

Personal Development for Smart PeopleTM Forums

 

Go Back   Personal Development for Smart People Forums > Personal Development > Technology & Technical Skills

Technology & Technical Skills Computer skills, hardware, software, internet topics, gadgets, programming


Welcome to the Personal Development for Smart People Forums, the place for lively, intelligent discussion of all personal growth issues -- physical, mental, financial, social, emotional, spiritual, and more.

You're currently viewing as a guest, which gives you limited read-only access. By joining our free community, you'll be able to post your own messages, access many members-only features, see the new messages posted since your last visit, and of course remove this header message. Registration is fast, simple, and free, so please join today.

If you arrived here from a search engine, you may want to explore the main site first, which includes hundreds of deep and insightful articles on a variety of personal development topics.
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 04-23-2007, 01:10 PM
Senior Member
 
Join Date: Nov 2006
Posts: 265
Gordon is on a distinguished road
Default Dulicating lines in a invoice report

Hello folks,

Need some techy MS Access people for this one.....hope there is someone here who can help.

am sure someone will have a simple answer to this.

I am building a simple invoicing tool. It records the clients details in a registration table, with a uniqe issues autonumber account number (with a primary key). The second table contains a list of products,

The form contains 2 parts

1) To list the customers and type in a customer orders number.
2) Sub-form to allow the customer to buy many products.

All works fairly well. Except in the sub form, there is a field that allows some notes to be typed into a box. Again that works ok. (We type dates into this field)

But if I add a second line with the same probduct and a different date, the lines double themselves on the report. But the final information that gets recorded onto a third accounts table is correct.

Here are some expamples of the sub-forms (not all the details, just the problem part)

Donughts, 27th April, 100, £0.15....
Donughts, 28th April, 150, £0.15...

The date field is manually added and products come from a reference table.

So far to good, when I press the button to create a report, it posts all the correct informtion to the apporiate table witht the correct amounts.

How the report will come out like this.

The field where the date gets added is called the date of service field.

Donughts, 27th April, 100, £0.15...
Donughts, 28th April, 100, £0.15...
Donughts, 27th April, 150, £0.15...
Donughts, 28th April, 150, £0.15...

So wheneven some extra text or dates are typed in the sub-form, the report seems to double the lines and give me the wrong invoice amount, and yet the correct amount will have been posted to the approriate tables. So only the invoice is wrong.

Hope someone can help.

Regards

Gordon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-23-2007, 02:55 PM
Senior Member
 
Join Date: Nov 2006
Posts: 265
Gordon is on a distinguished road
Default

Hello,

I have just been send the answer to my problem

To fix the problem as it stands you need to create a join in the query [qry - final invoice] between [dates of service] in the tables [tbl - orders - details] and [tbl orders - sales].

It was a normalization problem.

Thanks for all those who had a look at this for me.

Regards

Gordon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT. The time now is 12:24 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 by Pavlina LLC