Penrodcigar
Technical User
Dim S As Object
Set S = CreateObject("WScript.Shell")
S.Run Chr(34) & "C:\01_LawSchool\12 Spring 2007\Independent study\Data zoning exceptions 2000-2004\2000 vol I\HPIM3948.JPG" & Chr(34)
Set S = Nothing
I'm using the above code to open scans with a command button on a form. But the directory seems to long. I can't copy the files to another computer and get it to work without rewriting the code. I remember in the old days of the the Autocad/Autolisp help forum on Compuserve, there was a way to put [scan] files in the same directory as [the database]and they would open. The software would find the files as long as they were in the same directory. Can this be done with Access?
Thanks,
Set S = CreateObject("WScript.Shell")
S.Run Chr(34) & "C:\01_LawSchool\12 Spring 2007\Independent study\Data zoning exceptions 2000-2004\2000 vol I\HPIM3948.JPG" & Chr(34)
Set S = Nothing
I'm using the above code to open scans with a command button on a form. But the directory seems to long. I can't copy the files to another computer and get it to work without rewriting the code. I remember in the old days of the the Autocad/Autolisp help forum on Compuserve, there was a way to put [scan] files in the same directory as [the database]and they would open. The software would find the files as long as they were in the same directory. Can this be done with Access?
Thanks,