Create a Submit and Print Button

M

Meg

I want a Submit and Print Button so that when the user Enters new data they
can click the button and it will Submit the data back to my Access Database
and then Print the new data in the Data Entry Form. I have tried the
following:

You can use this code (vbscript) on the click event of your button:

XDocument.Submit
XDocument.Printout

** NOTE: This will require your form to be "Fully Trusted."

Also tried
this.XDocument.Submit
this .XDocument.Printout

It does not work either way and I get the message:

A run-time error has occurred.
Do you want to debug?
The following error occurred:

‘this.XDocument’ is null or not an object (or XDocument is null or not
an object)
File:script.js
Line:47

Maybe I am not putting it in the right place. Can anyone help??

Thanks,

MEG
 

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