Execute the contents of a field?

  • Thread starter Thread starter TA
  • Start date Start date
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
 
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
 
Back
Top