Help with events

Nirious

Registered User.
Local time
Today, 10:15
Joined
Jul 31, 2004
Messages
106
I need to find an event that happens when you print a report but that doesn't happen when you just preview the report.

Is there such a thing?
 
what are you trying to do, if you could explain a little more, then i may be able to assist you...
 
I have this access application that gets its tables from other access files. Those tables are used in a form in this application. Here you can manipulatethe data. The form also has a button to show you some reports containing the data from the table.
Now after a report has been printed, the uses shouldn'tbe allowed to still alter the data of this access file using the form.
The problem is that every event I try to put my code to lock the tables in, happens when I print the report, as well as when I just preview it :confused:
So I'm looking for an event that happens when you print something, but doesn't happen when you just preview a report.

I hope that made sense to you.

Nirious
 
so you have on a form a button to preview and to print the report.

Why not in the code of the print command button write some code, that disables the form once its been printed.

But the user could still print the report by previewing it, and then printing it that way.

You could have a field on each record to say whether or not that record has been preview or printed, if the record has been printed then the user is not even able to see the record, because you would filter the form to not include these records.

Hope any of this helps, let me know if you require any more help or advise
 
I think M8 is on the right track. Seems the data needs to be explicitly 'Closed' by the user instead of inheriting a rather ambiguous 'Closed' state after it has been printed. How will the user know, by viewing data in the form that it has been closed and printed...

kh
 
Yeah, I'll make it two buttons
thx for helping.

Nirious
 

Users who are viewing this thread

Back
Top Bottom