Hi Everyone,
I have a table which has many fields in it but I need to pull some specific
info via a query and I don't know if it's possible.
I want to run a query which includes two tables. Participants and Payments.
They are linked so that a participant can make many payments and a report
can then be printed on all payments that participant has made.
What I want to do is have a field in the payments table that has a "PaidTo"
field which is a date. If it goes past the date, I want to be able to run a
query that shows participants that are overdue. I have query that does this.
That was no issue. Where the problem ocures is that as there may be many
payments by the one participants, unless I remove the past payment enquiry
date, is shows the old payments as well yet I only want to show the last
one.
What I have is;
<=Date()-7 And Is Not Null
for the criteria of the PaidTo field. When I run the query, it shows a list
that may have the participant 10 times as they've made 10 payments. I want
it to only show the Last Payment "PaidTo" Date.
I hope that all makes sense! If anyone can help me i'd appreciate it.
Regards, Scott :) 2 3079
Hint: It helps to post your query. Without that, we can only
guess....
On Thu, 8 Nov 2007 11:32:52 +0900, "scott"
<sc**********@maneyacts.comwrote:
>Hi Everyone,
I have a table which has many fields in it but I need to pull some specific info via a query and I don't know if it's possible.
I want to run a query which includes two tables. Participants and Payments. They are linked so that a participant can make many payments and a report can then be printed on all payments that participant has made.
What I want to do is have a field in the payments table that has a "PaidTo" field which is a date. If it goes past the date, I want to be able to run a query that shows participants that are overdue. I have query that does this. That was no issue. Where the problem ocures is that as there may be many payments by the one participants, unless I remove the past payment enquiry date, is shows the old payments as well yet I only want to show the last one.
What I have is; <=Date()-7 And Is Not Null
for the criteria of the PaidTo field. When I run the query, it shows a list that may have the participant 10 times as they've made 10 payments. I want it to only show the Last Payment "PaidTo" Date.
I hope that all makes sense! If anyone can help me i'd appreciate it.
Regards, Scott :)
Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!
On Nov 7, 9:32 pm, "scott" <scott.nos...@maneyacts.comwrote:
Hi Everyone,
I have a table which has many fields in it but I need to pull some specific
info via a query and I don't know if it's possible.
I want to run a query which includes two tables. Participants and Payments.
They are linked so that a participant can make many payments and a report
can then be printed on all payments that participant has made.
What I want to do is have a field in the payments table that has a "PaidTo"
field which is a date. If it goes past the date, I want to be able to run a
query that shows participants that are overdue. I have query that does this.
That was no issue. Where the problem ocures is that as there may be many
payments by the one participants, unless I remove the past payment enquiry
date, is shows the old payments as well yet I only want to show the last
one.
What I have is;
<=Date()-7 And Is Not Null
for the criteria of the PaidTo field. When I run the query, it shows a list
that may have the participant 10 times as they've made 10 payments. I want
it to only show the Last Payment "PaidTo" Date.
I hope that all makes sense! If anyone can help me i'd appreciate it.
Regards, Scott :)
It doesn't make sense to store "PaidTo" (a volatile value) in Payments
(a transaction table). You would have to update this field every time
a payment is posted. What you can do is create a new query showing the
max PaidTo grouped by Participant. Use the latter query to drive the
overdue report.You can join this to the Participants table to get
details for the participants.
Hope this helps! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: AndyBell |
last post by:
Hi all!
I have an Access 2000 database for the Habiat for Humanity where I work.
This is the second database I have written and it gets a bit more complex
each time... I have learned much and...
|
by: Melissa |
last post by:
I have this table:
TblProjectYear
ProjectYearID
ProjectYearStartDate
ProjectYearEndDate
The Project Year will always span across December 31; for example 9/1/04 to
6/30/05. How do I build a...
|
by: samotek |
last post by:
Filter the last date only
I am trying t0 filter only the last date of the query,but i cannot
manage that.
My query is the following :
SELECT Sum(.liters) AS SumOfLiters, orders.invoicedate...
|
by: solar |
last post by:
I have a problem with building a totals query showing data
for the last date only.Under the last date i understand the last date
of field invoicedate.This invoice date is in the table orders....
|
by: ice |
last post by:
Hello,
I have a couple of tables. The client tables and the contacted
tables.
I am not sure how to start on this, what I need is a way to query all
my clients
then show any client that the...
|
by: schapopa |
last post by:
Hi,
I want to create query where I could group records by quarters, and get
the last record in each group.
e.g
Create Table MyTable
(
Value ,
date
)
|
by: dauwe.peter |
last post by:
A table : Nameperson, Book nr, Bookdatein, Bookdateout, CD nr,
cddatein, cddateout, dvd nr, dvddatein, dvddateout.
I would like a query where a see the personsname en de last book with
the...
|
by: paii, Ron |
last post by:
I have a sales table that logs sales information for each active job at the
end of each month. My question is, will the following query give me the last
sell price for each job in the sales table?...
|
by: oszapped |
last post by:
I am new to creating SQL queries and need some help.
I am trying to query from three tables.
1 - A table with a list of Drawings (DRAWINGS)
2 - A table with the Revision history of the Drawings...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |