Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / April 2006

Tip: Looking for answers? Try searching our database.

Selecting Amounts by Month

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tim - 06 Apr 2006 14:58 GMT
I am using an Access database that contains the following fields:

ClientNumber, LastPaymentDate, LastPaymentAmount, 2ndLastPaymentDate,
2ndLastPaymentAmount

The database contains a history of the last 12 payment and amounts
regardless of what dates on which the  payments where made. I need a query
that will give me the following information from these records:

ClientNumber, Payment Amounts made in March, Payment Amounts made in
February, Payment Amounts made in January, Payment Amounts made in December

Any help is greatly appreciated

Tim
Access 2000
Rick B - 06 Apr 2006 15:08 GMT
Your structure is flawed.  If your field contains data (last, next to last,
etc.) then you probably have a flawed structure.

You should have two or more tables.  One to store the Client data (number,
name, etc.) and one to store the transactions.  (ClientNumber, PaymentDate,
PaymentAmount).  The Client table would have one entry for each client.  the
transaction table would have one entry for each payment.  It could have one
entry for a new customer, or many for an older client.

If you normalize your data, then you can easily pull all "transactions" for
a given month.  Or you can group and sort by month.

Signature

Rick B

>I am using an Access database that contains the following fields:
>
[quoted text clipped - 13 lines]
> Tim
> Access 2000
tim - 06 Apr 2006 19:04 GMT
That what I suspected.

That you for your reply

Tim

> Your structure is flawed.  If your field contains data (last, next to last,
> etc.) then you probably have a flawed structure.
[quoted text clipped - 25 lines]
> > Tim
> > Access 2000
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.