ms-access-course - printing certain entries table

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Access Training and help » ms-access-course - Printing certain entries in table

ms-access-course - Printing certain entries in table

resolvedResolved · Low Priority · Version Standard

Merline has attended:
Excel Introduction course
Excel Intermediate course
Excel Advanced course

Printing certain entries in table

Is it possible to print only a certain number of entries in a table? E.g. where the status/ priority is "live" and also only the last 5 entries?

If I need to write a query for this, how do I do tis?

Thanks
Merline

RE: Printing certain entries in table

Merline,

I would suggest that you write a query to extract the data, then create a report using the data from the query.

To create the query, just select the data you want and then have the conditions as stated above in place to restrict the data set.

Hope this helps
David

RE: Printing certain entries in table

Thanks David.

How do I restrict the return of my query to only the last 5 entries for example?

RE: Printing certain entries in table

Merline,

I am not sure if you can do this within Access, you can do it with VBA and other programming languages. Essentially you return the whole set of data then use a loop to count backwards 5 from the last returned entry and then just use those 5 rows.

Hope this helps
David

 

Training courses

 

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Access tip:

Closing form after a certain time period

To make a form close automatically after a certain time period, you need to assign the close function to a macro.

Save the macro and ope up the form in design view. open the Properties sheet.

In the TimerInterval property enter the length of time you want the form open for. This should be in milliseconds, so for instance if you want the form open for 5 seconds enter 5000, for an minute enter 60000.

You now need to attach your macro (to execute the Close action) to the OnTimer event property of the form.



View all Access hints and tips


Server loaded in 0.08 secs.