Create your command button, lets assume its name is btnPDF
then in the script editor you should have something like this for the
onclick event
<script language=vbscript for=btnPDF event=onclick
<!--
dim objShell
dim myFile
set objShell = CreateObject("Shell.Application")
myFile = yourfield.value 'yourfield value must be a full path and valid
filename
objShell.ShellExecute myFile, "", "", "open", 1
set objShell = Nothing
-->
</script>
Paul D
"Pam" <pamnospam@[EMAIL PROTECTED]
> wrote in message
news:O6cyvThqIHA.4476@[EMAIL PROTECTED]
Can anyone please tell me how to set up a command button on a data page
to
: open pdf in file to match what is listed in a field?
: Pam
:
:


|