Printing out blank report

M

Mark

I have set up a macro which I incorporated into a command button on my form
that prints out the corresponding report. It works fine unless I am trying
to print out a form I just opened. I have it set that when I open it a new
form pops up for input. If , when I am done filling it out, I want to print
it, I click on the command button and it prints out a blank report. I have
to go to a new record (or an old record) and come back and hit the button
again. Then it prints fine. Is there a way to avoid this? I tried clicking
on save to no avail.
 
M

Mark

It seems that the problem is that if I have a new form open and have started
entering data, the data isn't updated into the table at the same time. You
have to get out of the form, go to another form, adn then go back in order
for the data to appear in the table. Is there a way I can make the date
enter into the table as I input it into the form?
 
C

Carl Rapson

In the Click event for the command button, try putting the line

If Me.Dirty = True Then Me.Dirty = False

just before you open the report.

Carl Rapson
 
Top