prient preview okay but actual printing causes #name? error

J

jillymc

I have a report that displays values collected from a form.
The Print Preview shows the values correctly, but when I actually print the
report (to a printer or pdf) the values show up as #Name? errors.

I have the values entered in controlsource field of the report as
[=[forms]![frmName]![formvaluename]

Any suggestions?
 
J

jillymc

Yes, that turns out to be the problem.
The form opens in a popup window that obstructs the print preview. We were
closing the popup before printing.

Which brings up the question.....is there a way to have the print preview
window appear in front of the form popup?
Or, how could I pass the variables in the code behind so that it's not an
issue?

thanks.
Jill

Gina Whipp said:
jillymc,

Are you closing the form before the report actually prints?

--
Gina Whipp

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

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

jillymc said:
I have a report that displays values collected from a form.
The Print Preview shows the values correctly, but when I actually print
the
report (to a printer or pdf) the values show up as #Name? errors.

I have the values entered in controlsource field of the report as
[=[forms]![frmName]![formvaluename]

Any suggestions?


.
 
G

Gina Whipp

Jill,

Instead of closing the form use Visible...

On Report's On_Close Event

Forms![YourFormName].Visible = True

On the Report's On_Load Event

Forms![YourFormName].Visible = False

--
Gina Whipp

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

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

jillymc said:
Yes, that turns out to be the problem.
The form opens in a popup window that obstructs the print preview. We
were
closing the popup before printing.

Which brings up the question.....is there a way to have the print preview
window appear in front of the form popup?
Or, how could I pass the variables in the code behind so that it's not an
issue?

thanks.
Jill

Gina Whipp said:
jillymc,

Are you closing the form before the report actually prints?

--
Gina Whipp

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

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

jillymc said:
I have a report that displays values collected from a form.
The Print Preview shows the values correctly, but when I actually print
the
report (to a printer or pdf) the values show up as #Name? errors.

I have the values entered in controlsource field of the report as
[=[forms]![frmName]![formvaluename]

Any suggestions?


.
 
J

jillymc

That works perfectly!!!!!
Thanks for the Christmas present!!!
Jill

Gina Whipp said:
Jill,

Instead of closing the form use Visible...

On Report's On_Close Event

Forms![YourFormName].Visible = True

On the Report's On_Load Event

Forms![YourFormName].Visible = False

--
Gina Whipp

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

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

jillymc said:
Yes, that turns out to be the problem.
The form opens in a popup window that obstructs the print preview. We
were
closing the popup before printing.

Which brings up the question.....is there a way to have the print preview
window appear in front of the form popup?
Or, how could I pass the variables in the code behind so that it's not an
issue?

thanks.
Jill

Gina Whipp said:
jillymc,

Are you closing the form before the report actually prints?

--
Gina Whipp

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

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

I have a report that displays values collected from a form.
The Print Preview shows the values correctly, but when I actually print
the
report (to a printer or pdf) the values show up as #Name? errors.

I have the values entered in controlsource field of the report as
[=[forms]![frmName]![formvaluename]

Any suggestions?



.


.
 
G

Gina Whipp

Jill,

Glad to help!

--
Gina Whipp

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

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

jillymc said:
That works perfectly!!!!!
Thanks for the Christmas present!!!
Jill

Gina Whipp said:
Jill,

Instead of closing the form use Visible...

On Report's On_Close Event

Forms![YourFormName].Visible = True

On the Report's On_Load Event

Forms![YourFormName].Visible = False

--
Gina Whipp

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

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

jillymc said:
Yes, that turns out to be the problem.
The form opens in a popup window that obstructs the print preview. We
were
closing the popup before printing.

Which brings up the question.....is there a way to have the print
preview
window appear in front of the form popup?
Or, how could I pass the variables in the code behind so that it's not
an
issue?

thanks.
Jill

:

jillymc,

Are you closing the form before the report actually prints?

--
Gina Whipp

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

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

I have a report that displays values collected from a form.
The Print Preview shows the values correctly, but when I actually
print
the
report (to a printer or pdf) the values show up as #Name? errors.

I have the values entered in controlsource field of the report as
[=[forms]![frmName]![formvaluename]

Any suggestions?



.


.
 

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