Form field in a report

G

Guest

I have a report and i want to put a date in it that has previously been
entered in a form. It works for the first page but i just get #Name? on all
other pages.

my field on the rport is =[Forms]![PrintInvoiceStats1]![Invoice Start Date]

Any help would be appretiated
 
M

Marshall Barton

Smiffy said:
I have a report and i want to put a date in it that has previously been
entered in a form. It works for the first page but i just get #Name? on all
other pages.

my field on the rport is =[Forms]![PrintInvoiceStats1]![Invoice Start Date]

Sounds like the form is being closed. It must remain open
until the report is closed.
 
G

Guest

Thanks Marsh, i'll check it out

Marshall Barton said:
Smiffy said:
I have a report and i want to put a date in it that has previously been
entered in a form. It works for the first page but i just get #Name? on all
other pages.

my field on the rport is =[Forms]![PrintInvoiceStats1]![Invoice Start Date]

Sounds like the form is being closed. It must remain open
until the report is closed.
 
G

Guest

Hi Marsh,

That was the problem, I have setup a macro and opened the form, then opened
the report, then closed the form Why did it close the form before the end of
the report and how should i close it?

Brian

Marshall Barton said:
Smiffy said:
I have a report and i want to put a date in it that has previously been
entered in a form. It works for the first page but i just get #Name? on all
other pages.

my field on the rport is =[Forms]![PrintInvoiceStats1]![Invoice Start Date]

Sounds like the form is being closed. It must remain open
until the report is closed.
 
M

Marshall Barton

I just got back from vacation and hope you didn't think your
question was abandoned.

Reports run asynchronously from other parts of Access. You
can either open the report in Dialog mode (not generally
recommended, but ocassionally useful) or use some code (or a
macro) in the report's close event to close the form.
--
Marsh
MVP [MS Access]

That was the problem, I have setup a macro and opened the form, then opened
the report, then closed the form Why did it close the form before the end of
the report and how should i close it?

Smiffy said:
I have a report and i want to put a date in it that has previously been
entered in a form. It works for the first page but i just get #Name? on all
other pages.

my field on the rport is =[Forms]![PrintInvoiceStats1]![Invoice Start Date]

Marshall Barton said:
Sounds like the form is being closed. It must remain open
until the report is closed.
 
G

Guest

Thanks for the reply Marshall, hope you had a good vacation.


Marshall Barton said:
I just got back from vacation and hope you didn't think your
question was abandoned.

Reports run asynchronously from other parts of Access. You
can either open the report in Dialog mode (not generally
recommended, but ocassionally useful) or use some code (or a
macro) in the report's close event to close the form.
--
Marsh
MVP [MS Access]

That was the problem, I have setup a macro and opened the form, then opened
the report, then closed the form Why did it close the form before the end of
the report and how should i close it?

Smiffy wrote:
I have a report and i want to put a date in it that has previously been
entered in a form. It works for the first page but i just get #Name? on all
other pages.

my field on the rport is =[Forms]![PrintInvoiceStats1]![Invoice Start Date]

Marshall Barton said:
Sounds like the form is being closed. It must remain open
until the report is closed.
 

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