ms access - How to launch one other program with VBA code? -


i'm trying launch program install in system access application. or open file access, how can it?

ex: there's file barcode_12mm.lbl, want use vba code launch in 1 program edits bar-code label file.

thanks!

you have multiple alternatives in access:

  1. shell() (see file)

  2. application.followhyperlink (see file)

  3. shellexecute() -- access.mvps.org/access/api/api0018.htm

the first requires know path of executable calling , kind of fussy getting arguments formatted (you'll need double quotes arguments spaces in them, instance).

the last 2 registered applications, such if file extension has association defined, open application associated it. followhyperlink easier, shellexecute provides more options.

aside:

note many people think using barcodes in access requires outside program or activex control. barcodes fonts, if understand format of barcode encoding, it's simple create own barcodes within access , not worry outside dependencies. tony toews has article rounding lots of information on subject.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -