Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Zoom Content of an ImageFrame
Marcelino Sanchez 
     
3 years ago
GAN guys fellow Access guru's. I was wondering if there is a way to click an image inside my ImageFrame on my form to zoom (Enlarge the Photo for better viewing)?
Kevin Robertson  @Reply  
           
3 years ago
I would use a second form with a larger image control.
In the Click event of a button or the Double Click event of the image control you could set the picture property of the large image equal to the picture property of the small image (depending on your setup)

You could say something like:
Forms!FormName!imgCtrl.Picture = imgCtrl.Picture
Kevin Yip  @Reply  
     
3 years ago
I second Kevin's idea, and that was how I did it in my movie collection database.  See picture below.
Kevin Yip  @Reply  
     
3 years ago

Marcelino Sanchez OP  @Reply  
     
3 years ago
Thank you both for your input. I did as you suggested and got the large image to appear; however, as I move between records and click on the current record image I get the same image. Need more help. Can you provide a sample vba code?
Juan C Rivera  @Reply  
            
3 years ago
sounds like a requery may be needed.  try one of the following Requery in Place, requery subform and this last one is nice to inform you what may be the best option requery vs refresh
Kevin Robertson  @Reply  
           
3 years ago
In the Large Image form I set the following properties:

Navigation Buttons - No
Record Selectors - No
Scroll Bars - Neither
Min Max Buttons - None
Modal - Yes

The forms with the code I used are shown in the screenshot below.
Kevin Robertson  @Reply  
           
3 years ago

Marcelino Sanchez OP  @Reply  
     
3 years ago
Kevin, I tried your code and still no success. Can you review my code to determine what I may be doing wrong?

Below is the VBA code associated with the small image on my Vehicle Form:

Private Sub VehiclePictureImage_DblClick(Cancel As Integer)

    Dim lastBS As Long, imageName As String

    lastBS = InStrRev(VehiclePicture, "\")
    imageName = Right(VehiclePicture, Len(VehiclePicture) - lastBS)
    
    DoCmd.OpenForm "LargeImageF"
    Forms!LargeImageF!imgLargeImage.Picture = VehiclePicture
    Forms!LargeImageF.Caption = "Image: " & imageName
    
End Sub

-----------------------------------------------------------------------------------

VehiclePictureImage is the name of my image control on the form.

When I double-click the small image on my VehicleF, I am getting the following error:  Compile error: Variable not defined

-----------------------------------------------------------------------------------

I made the changes you suggested on my LargeImageF and when opened manually I am able to see the images of my 4 vehicles. I temporarily enable the navigation button and can cycle through my vehicle pics just fine.

The connected the LargeImage form to the same Record Source as my main form (VehicleT) and I named the Image Control the same as the small image (VehiclePictureImage). Should it name be different?

Thank you in advance for your continued assistance.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 8/8/2026 11:42:19 AM. PLT: 1s