OpenReport macro question

chdui

New Member
Joined
May 7, 2015
Messages
1
Hi all,

First time using Access 2013 here.

I've built an Access Database that captures information about employee ticket quality using one form and drops it into a table (QA Reviews). What I would like to do then is run a report to pull the last 5 entries for a specific employee.

What I have done is create a Report that has all of the fields I need (QA Review Report) and then have created a second form (Run QA Report) that includes the 'Consultant Name' field and an OK button that will run a macro when pressed.

What I have so far in the macro code is as follows:
DoCmd.OpenReport "QA Review Report", acViewReport, "", """Consultant Name="" & [QA Reviews].[Consultant Name]", acNormal

However, when running this form, it still doesn't produce anything and I also have not figured out how to get it pull the last five entries in the table for that specific 'Consultant Name'.

Any assistance would be greatly appreciated.

Thanks!
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Cross-posted: OpenReport macro question

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule #10 here: Forum Rules).

This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.

For a more complete explanation on cross-posting, see here: Excelguru Help Site - A message to forum cross posters).
 
Upvote 0

Forum statistics

Threads
1,221,867
Messages
6,162,523
Members
451,773
Latest member
ssmith04

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top