Hope all is well with everyone. I have a form called "Main_Site_Informatiom" and on that form there are 3 subforms. One for site contacts, one for site techs and the last for site equipment.
On the subform for site contacts I created a "Click" event on the "ContactID" field to open the ContactsAdd form when I click on a contact ID. The code is...
DoCmd.OpenForm "fContactAdd", acNormal, , "[ContactID]=" & [Forms]![main_site_information]![sfrm_SiteInfoContacts].Form![ContactID], , acWindowNormal
This works and the form opens on the contact ID that I click.
I also want the same function on my tech subform. So I copied and pasted the code above in the "Click" event of my TechID field on the tech subform then changing the field names.
DoCmd.OpenForm "fHHCTechs", acNormal, , "[techID]=" & [Forms]![main_site_information]![sfrm_SiteInfoTechs].Form![TechID], , acWindowNormal
When I click on a tech ID I get a pop-up titled "Enter Parameter Value". In the box above the input field is the tech id that I clicked. I don't understand why it is acting this way. The form that this code is opening does have Filter on Load set to yes. If I enter the techID in the popup it opend the form to that tech.
Thank you in advance for your assistance.
![]()