Results 1 to 6 of 6
  1. #1
    Madi is offline Novice
    Windows 10 Access 2019
    Join Date
    Nov 2024
    Posts
    3

    Pop Up Form for Contact Details when double clicking contact image on Contact List


    I'm very inexperienced with access but am trying it out to create a vendor/ contact list for work. I have created a form (VendorList1) from a table with all the contact info (auto id, company name, image, address....). What I am attempting to do, is create a Pop up form (named Profile) with the contact details that appears when I double click the image (in field 1) in the original contact list form(VendorList1). I have already created the pop up so that is ready to go, I just need help with figuring out the code for opening the pop up with the details of the company whose image I am double clicking. Thank You!
    Click image for larger version. 

Name:	Capture.PNG 
Views:	17 
Size:	39.0 KB 
ID:	52423 Click image for larger version. 

Name:	Capture.PNG 
Views:	17 
Size:	35.3 KB 
ID:	52422

  2. #2
    dashiellx's Avatar
    dashiellx is offline Falconer
    Windows 10 Office 365
    Join Date
    Jan 2019
    Location
    Baltimore
    Posts
    56
    In design view on your form, under the Event tab for the image control's properties you should see a line with On DblClick. Click the button on the right to open the VBA code window or create a macro using the drop down.

  3. #3
    Madi is offline Novice
    Windows 10 Access 2019
    Join Date
    Nov 2024
    Posts
    3
    Quote Originally Posted by dashiellx View Post
    In design view on your form, under the Event tab for the image control's properties you should see a line with On DblClick. Click the button on the right to open the VBA code window or create a macro using the drop down.
    Yeah I found that, what I need help with is the the code to put into the code builder

  4. #4
    dashiellx's Avatar
    dashiellx is offline Falconer
    Windows 10 Office 365
    Join Date
    Jan 2019
    Location
    Baltimore
    Posts
    56
    Sorry about that.

    DoCmd.OpenForm "frmFormName", ,,,,acDialog

  5. #5
    Madi is offline Novice
    Windows 10 Access 2019
    Join Date
    Nov 2024
    Posts
    3
    So actually I figured out the command button to open for form so that solves half my problem. My issue now is that when i lick the open form button next to the company i want to see the details for, it opens up the same page every time. How do I make it so that when I click on the open form button next to a specific vendor, it brings up the profile form with that vendors info and not the first record?

  6. #6
    dashiellx's Avatar
    dashiellx is offline Falconer
    Windows 10 Office 365
    Join Date
    Jan 2019
    Location
    Baltimore
    Posts
    56
    You want to use the WHERE clause of the OpenForm method.

    DoCmd.OpenForm "frmFormName", , , "[CompanyID]=" & Me.txtControlWithCompanyIDonForm, , acDialog

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 09-18-2020, 09:06 PM
  2. Replies: 5
    Last Post: 07-10-2020, 12:41 PM
  3. Replies: 2
    Last Post: 02-06-2019, 01:24 PM
  4. Double Clicking a List Box
    By UT227 in forum Programming
    Replies: 3
    Last Post: 06-24-2018, 12:58 PM
  5. Replies: 2
    Last Post: 09-15-2015, 03:08 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums