Open Reports in Maximum Print Preview

  • Thread starter Uschi via AccessMonster.com
  • Start date
U

Uschi via AccessMonster.com

Is there a way to have the report open in Maximum print preview instead of
the report opening and then clicking the maximize button at the top of the
page?

Thanks for your help.
 
M

Marshall Barton

Uschi said:
Is there a way to have the report open in Maximum print preview instead of
the report opening and then clicking the maximize button at the top of the
page?


If you use code (behind a command button on a form?) to open
the report, add:
DoCmd.Maximize
right after the OpenForm line.
 
S

Steve

OpenForm will not open a report!

Also, the OP wants to open a report in Print Preview!
 
G

Gina Whipp

Uschi,

Ooops, I am sure Marshall meant OpenReport... Try this

DoCmd.OpenReport "NameOfYourReport", acViewPreview
DoCmd.Maximize

However, if you need the report to open a specific record, use...

If field is TEXT

DoCmd.OpenReport "rptBoL", acViewPreview, , "[NameOfFieldInReport]=" &
Me![NameOfFieldOnForm]
DoCmd.Maximize

If field is NUMERIC

DoCmd.OpenReport "rptBoL", acViewPreview, , "[NameOfFieldInReport]=' " &
Me![NameOfFieldOnForm] & " ' "
DoCmd.Maximize

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 
S

Steve

Wrong!!

The code for text and numeric should be reversed.


Gina Whipp said:
Uschi,

Ooops, I am sure Marshall meant OpenReport... Try this

DoCmd.OpenReport "NameOfYourReport", acViewPreview
DoCmd.Maximize

However, if you need the report to open a specific record, use...

If field is TEXT

DoCmd.OpenReport "rptBoL", acViewPreview, , "[NameOfFieldInReport]=" &
Me![NameOfFieldOnForm]
DoCmd.Maximize

If field is NUMERIC

DoCmd.OpenReport "rptBoL", acViewPreview, , "[NameOfFieldInReport]=' " &
Me![NameOfFieldOnForm] & " ' "
DoCmd.Maximize

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 
G

Gina Whipp

Uschi,

I did made an Oops, the TEXT and NUMERIC should be reversed. I guess both
Marshall and I need more coffee!

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

Gina Whipp said:
Uschi,

Ooops, I am sure Marshall meant OpenReport... Try this

DoCmd.OpenReport "NameOfYourReport", acViewPreview
DoCmd.Maximize

However, if you need the report to open a specific record, use...

If field is TEXT

DoCmd.OpenReport "rptBoL", acViewPreview, , "[NameOfFieldInReport]=" &
Me![NameOfFieldOnForm]
DoCmd.Maximize

If field is NUMERIC

DoCmd.OpenReport "rptBoL", acViewPreview, , "[NameOfFieldInReport]=' " &
Me![NameOfFieldOnForm] & " ' "
DoCmd.Maximize

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 
K

Keith Wilby

Steve said:

You really are a child aren't you $teve? Read one of your reference books
and see if there's a chapter on how to behave like a mature professional.
 
U

Uschi via AccessMonster.com

Yikes! What have I started here?

Marshall, everything is fine. I looked at the code and I knew what you meant.

Here's my code:

stDocName = "Current Membership Report"
DoCmd.OpenReport stDocName, ac Preview
DoCmd.Maximize

It works like a charm.

Thanks so much,
Uschi

Gina said:
Uschi,

I did made an Oops, the TEXT and NUMERIC should be reversed. I guess both
Marshall and I need more coffee!
[quoted text clipped - 27 lines]
 
U

Uschi via AccessMonster.com

Yikes! What have I started here?

Marshall, everything is fine. I looked at the code and I knew what you meant.

Here's my code:

stDocName = "Current Membership Report"
DoCmd.OpenReport stDocName, ac Preview
DoCmd.Maximize

It works like a charm.

Thanks so much,
Uschi

Gina said:
Uschi,

I did made an Oops, the TEXT and NUMERIC should be reversed. I guess both
Marshall and I need more coffee!
[quoted text clipped - 27 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top