Two action on one SUBMIT click.

D

Dave Lagergren

I have a database application in FP 2003 where I need to submit the results
of a form to the database AND print a copy. Can I do this with one button?
One solution I came up with (but haven't yet implemented) was to have the
program that adds the submission include a PRINT button but it seems unneeded
if it can be accomplished with one key press.

Also, I guess I would need to have the Windows Printer window open so the
user could select a printer.....
 
T

Thomas A. Rowe

You have to provide the user with a print button or instructions for printing, as you can not
automatically print a document/page from a web page on a user computer.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
B

Brutus

OK. I understand that. But can't I tie two functions (save to database and
print) to one button click?

Dave
 
T

Thomas A. Rowe

No, as one would be server-side via ASP and the print function would be client-side JavaScript.

What you can do, is post to the database, then return a custom confirmation page with a print
button.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
B

Brutus

I was hoping to avoid that but I guess it is my only choice. Thanks for
your help!!

Dave
 

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