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:
shell() (see file)
application.followhyperlink (see file)
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
Post a Comment