Jason Lee Hayes
Active member
- Local time
- Today, 00:44
- Joined
- Jul 25, 2020
- Messages
- 217
Windows 11
Access 2016 32bit
I have a form with an image control that displayes a picture in BMP format.
I wish to open the BMP when i double click and use the OS Photo Viewer as the default application to open it.
So; you would think i could set the default .bmp extension in OS to open in Photo Viewer but it never does?
Ideally i don't wish to make this perminent either and only wish to use PhotoViewer whilst in my MS Access project.
I am opening the file in MS Access VBA using the Application.FollowHyperlink Method
I can see the PhotoViewer is actually a Dynamic Link Library (.dll) not an executable (.exe)
Its location on my pc is "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll"
I've done some googling and below is the line i likely need to call via shell:-
rundll32 "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen path_to_image
I'm not sure how to call this as a shell command written in VBA
Can anyone help please?
Access 2016 32bit
I have a form with an image control that displayes a picture in BMP format.
I wish to open the BMP when i double click and use the OS Photo Viewer as the default application to open it.
So; you would think i could set the default .bmp extension in OS to open in Photo Viewer but it never does?
Ideally i don't wish to make this perminent either and only wish to use PhotoViewer whilst in my MS Access project.
I am opening the file in MS Access VBA using the Application.FollowHyperlink Method
I can see the PhotoViewer is actually a Dynamic Link Library (.dll) not an executable (.exe)
Its location on my pc is "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll"
I've done some googling and below is the line i likely need to call via shell:-
rundll32 "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen path_to_image
I'm not sure how to call this as a shell command written in VBA
Can anyone help please?