RunnApp with variable

S

s92

I'm trying to use the runapp in a macro and pass a variable as the
application argument.

For example I want the value: Forms![Assets]![CompName] and have it added
onto the end of the command line specifcation of "C:\Program
Files\RealVNC\VNC4\vncviewer.exe"

This would allow me to launch VNC viewer directly to the computer that is
being viewed on the form.

Is this possible?

Thanks!
 
S

s92

Nevermind. I got it.

For ohters that may need this I just had to add & " " & in between the two
in the command line parameter:

"C:\Program Files\RealVNC\VNC4\vncviewer.exe" & " " &
Forms![Assets]![CompName]
 

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