Re: returning a value from a form

From: Jeff Boyce (JeffBoyce_IF_at_msn.com-DISCARD_HYPHEN_TO_END)
Date: 02/20/05


Date: Sun, 20 Feb 2005 06:30:05 -0800

Engin

I've seen similar requests before, but don't think I've ever seen a
"solution." Here's a couple reasons why...

You send a <print> to the printer, but the printer is out of
paper/ink/... -- is your printer smart enough to know that it didn't print,
and can it tell your PC?

You send a <print> to the printer and it "grabs" three sheets of paper
(humidity must be up today) and spreads your print page across all three.
Even if you printer is smart enough to know that it DID print and can tell
your PC, and your PC can tell Access, you still didn't get what you wanted,
right?!

The kinds of solutions I've seen here involve adding code to ask the USER if
s/he got printed what s/he wanted, then using that answer to indicate
"successful printing".

-- 
Good luck
Jeff Boyce
<Access MVP>
"oldguy" <engin.tarhan@kopiteknik.com.tr> wrote in message
news:ePzZdKzFFHA.3928@TK2MSFTNGP15.phx.gbl...
> Using Access 2002 on WinXP.
>
> In one of the event procedures of Form1, I'm opening Form2, which has a
> Print button which opens a report (if the user clicks a button) which must
> be printed for the operation to continue.
>
> It's possible to return from Form2 without opening the report.
>
> I want to be able to determine whether the report is printed or not.
>
> I could not find anywhere (well, in the help, or on the Internet) which
> tells me if it's possible to return a value (a boolean or an integer or a
> string) from a report and/or form, and if yes, how.
>
> Any hint will be sufficient (I hope), and will be warmly welcome.
>
> Engin.
>
>
>