Execute the contents of a field?

T

TA

I can't figure out how to have the contents of a field
(i.e. a field that contains the string
C:\TEMP\GRAPHIC.JPG) execute as a command line
instruction. A RunApp macro would seem to make sense, but
I dont know how to pass a variable like a form's field
contents to it. Perhaps I'll need to do this as a module?
(My database stores locations of graphic files that I
would like to be able open for the current record by
pressing a button. Graphic file extensions are associated
with a graphics viewer.) Any suggestions would be greatly
appreciated.

Thanks,

-TA
 
S

Steve Schapel

TA,

One option would be to define it as a hyperlink data type. Enter your
data like this...
file:\\C:\TEMP\GRAPHIC.JPG

- Steve Schapel, Microsoft Access MVP
 

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