Is there a way to view a report in a form

Jackblack1

Active Member
Joined
Feb 10, 2004
Messages
266
Is there a way to view a report in a form, and have a dialog box set the criteria?

Thanks

Jim
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Can't you just have a button on the form to open the report?

If you want you could set the criteria based on textboxes (or whatever) on the form.
 
Upvote 0
Hi Norie

I wanted to have a text box or something be the frame around the report in the form. I have some dropdowns that list specific criteria. I don't know how to display the report in the form.

Thanks
Jim
 
Upvote 0
Jim

Have you tried adding a subreport to the form?

I'm not 100% sure how they operate, I've never used them because it doesn't quite make sense to me having a report on a form.:)
 
Upvote 0
You can't insert a report into a form object directly. You can create a subform which can emulate most of what a report would show, but there are certain formatting issues that are difficult to program for.

However, if you are familiar with a snapshot object, then you could conceivably create a MS Explorer web browser object for your form, then link it to the browser, which can display the snapshot object within Explorer. In that way you can display a report, but in my opinion would be more hassle than the subform.

For the snapshot object, in VBA you would:

1. Create the report.
2. Export as a snapshot object to a location on your computer.
3. Link the snapshot to a local browser file.
4. Link the browser file to your Access form.

I've not tried this, but think it should work.
 
Upvote 0

Forum statistics

Threads
1,207,110
Messages
6,076,604
Members
446,216
Latest member
BEEALTAIR

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