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  dBforums > PC based Database Applications > Microsoft Access > Access Report - multiple records

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-06-12, 12:19
Maxx102 Maxx102 is offline
Registered User
 
Join Date: Jan 2012
Posts: 6
Access Report - multiple records

Hello,

I am looking for a way to display only one report at a time when a query is run.

Currently when I run a query, it goes to the report that I created. But if there is multiple records, the newest record starts below the previous record and it's one long item.

I would like only to display one record at a time. Is there an easy way to insert a command button that says "next record" ?
Reply With Quote
  #2 (permalink)  
Old 01-06-12, 13:34
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
how do you 'know' which is the most recent?
having established that set a sort order DESCending for that column

eg
ORDER BY MyColumn DESC

you can restrict the number of rows returned using the SELECT TOP clause
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 01-13-12, 12:06
Maxx102 Maxx102 is offline
Registered User
 
Join Date: Jan 2012
Posts: 6
Actually I was able to have the data come up exactly the way that I wanted.

Instead of pulling up the report, I have a macro that opens up the form in view mode so the data is there but not able to be modified.


Because this is an incident report type item for us to track burglaries, each report is given a specific incident number.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On