Excute a program

  • Thread starter Thread starter Marco
  • Start date Start date
M

Marco

Hi.

I have PC one and PC two. In PC one I have nicelabel (nicelabel is an
application to create and print lables) installed with a specific label.

I would like to make it run that label from an access form. Is it possibel?

Regards,
Marco
 
Hi Marco,

I may be a little confused: what are you trying to do with PC two? If you
are trying to run a program that is installed on PC one from PC two, you may
run into issues (not to mention license violations).

To run everything from PC One: open your form in design mode, add a button.
In the OnClick event of that button, type:

Dim strPath as string

'replace the brackets and the text contained in them below with the full
path (including the .exe extension) that the executable is stored in
strPath = "<Path to NiceLabel>"

Application.FollowHyperlink strPath

Hope that helps
 
Marco said:
Hi.

I have PC one and PC two. In PC one I have nicelabel (nicelabel is an
application to create and print lables) installed with a specific label.

I would like to make it run that label from an access form. Is it
possibel?


The Shell function can run an application, given the path to the executable.
You'll find it in the online help, though depending on your version of
Access you may have to search help from the VB Editor window, rather than
the Access application window.
 
Back
Top