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

ms-access-course - printing certain entries table

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

ResolvedVersion 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

Access tip:

Deleting duplicate records from a table

You cannot delete records tables where there duplicate records. A way around this is to create a new table which wont hold the duplicates. and then deleting the old table.

1. Use a make-table query based on this table only. IMPORTANT - Ensure that you include all of the fields from your original table or you may loose data.

2. Open the query's property sheet by using VIEW, QUERY, PROPERTIES, and set the Unique Values property to Yes

3. Because you have selected the Unique Values to Yes when you run the query, Access creates a new table without duplicate records. You can now delete the old table and rename the new one.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.