Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 1st, 2009, 07:11 AM
stevechriskirk stevechriskirk is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 41 stevechriskirk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 16 sec
Reputation Power: 2
Reports - Show last entry in list

hi,

i have a report that lists the times recorderd as well as other data from other fields IE
time rpm

11.00 100
11.30 120
12.00 140
ETC

i need this list in my report but i also need on the report the last entries

12.00 140 could you please advise me how to do that

thank you
steve

Reply With Quote
  #2  
Old July 1st, 2009, 07:50 AM
rpeare rpeare is offline
Contributing User
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jan 2008
Posts: 1,093 rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 23 h 52 m 46 sec
Reputation Power: 227
I don't understand your question. Is your report not showing data it should be?
__________________
----------------
If we've helped you and you have solved your problem please post that it's been resolved so we know! The suspense kills me!

Reply With Quote
  #3  
Old July 1st, 2009, 07:58 AM
stevechriskirk stevechriskirk is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 41 stevechriskirk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 16 sec
Reputation Power: 2
hi,

no the report shows all the results that have been entered into the database
the real results are temperture reading taken at 30 minute intervals when a motor is running as these will go up until the motor is stable

but at the end of the report i need to show a summary of the end readings as this will be when the temperatures are stable and what the customer should expect to see

hope this helps
steve

Reply With Quote
  #4  
Old July 1st, 2009, 01:54 PM
don94403's Avatar
don94403 don94403 is online now
Contributing User
Click here for more information.
 
Join Date: Jan 2007
Location: Northern California
Posts: 2,848 don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 18 h 41 m 42 sec
Reputation Power: 562
Think of it in terms of the DATA, not the report. You have records in a table and I presume you are selecting them with a query for your report. If you are interested in the most recent record, that would probably be the record with the highest value for the time, right? You can use a domain function, DMAX() to get that immediately. In case your times run past midnight, that might involve complications, in which case perhaps you can use the Autonumber Primary Key. You DO have an Autonumber Primary Key in your table, I presume.
__________________
Experience is the thing you have left when everything else is gone.

Reply With Quote
  #5  
Old July 1st, 2009, 01:59 PM
rpeare rpeare is offline
Contributing User
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jan 2008
Posts: 1,093 rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 23 h 52 m 46 sec
Reputation Power: 227
So you want to repeat the last reading from your process in the report footer?

something like:

Code:
---- START REPORT DETAIL
11.00 100
11.30 120
12.00 140 
---- END REPORT DETAIL
---- START REPORT FOOTER

12.00 140 ---->  other data

---- END REPORT FOOTER


If that's the case it's probably going to be a 2 step process, 1 to determine the most recent record (as don described you could get the MAX of your primary key) then do a dlookup of the data within that record to display it on your footer. Any other way you're sort of playing with fire because you won't get consistent results.

Reply With Quote
  #6  
Old July 2nd, 2009, 04:04 AM
stevechriskirk stevechriskirk is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 41 stevechriskirk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 16 sec
Reputation Power: 2
hi,

i do not know how to do this , is it possible to create a query with all the feilds in and the put the dlookup or Dlast in the criteria box - is so could you please give me a sample of what needs to be put in it

the feilds are tiime , rtd1 rtd2 rtd3 etc

but the idea is to put the last record in as you have said

steve

Reply With Quote
  #7  
Old July 2nd, 2009, 09:14 AM
rpeare rpeare is offline
Contributing User
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jan 2008
Posts: 1,093 rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level)rpeare User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 23 h 52 m 46 sec
Reputation Power: 227
If what you want is what I've got you don't do it in a query. You do it on your report.

Assuming your report is ordering things how you want with the most recent record last all you'd have to do is in your report footer section put a series of text boxes where the control source is:

=last([<fieldname>])

where fieldname would be your rtd1, rtd2, rtd3. This will ONLY work if you have sorted your data in your report such that the last record is the one you want repeated.

Reply With Quote
  #8  
Old July 3rd, 2009, 03:02 AM
stevechriskirk stevechriskirk is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 41 stevechriskirk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 16 sec
Reputation Power: 2
hi,

i cannot sort it as the records are recorded as they are the temperture can go up as well as down untill the machine is stable . so it is just the last record i need

thanks
steve

Reply With Quote
  #9  
Old July 3rd, 2009, 06:48 AM
stevechriskirk stevechriskirk is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 41 stevechriskirk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 16 sec
Reputation Power: 2
thank you
i have manged to get it. as you said i put it on the footer ans all was good

=Last([rtd load results].[rtd 1])

thanks again steve

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Reports - Show last entry in list


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
Stay green...Green IT