Results 1 to 3 of 3
  1. #1
    vad77 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Dec 2013
    Location
    USA
    Posts
    105

    Hyperlink from subform issue

    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.

    Click image for larger version. 

Name:	techID.JPG 
Views:	5 
Size:	18.4 KB 
ID:	15649

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    this is a parameter prompt. either the form, or its record source can't find that field... in the form look both in its set of fields but also look at the Order By property for any reference to it....also in any combobox record sources....

  3. #3
    vad77 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Dec 2013
    Location
    USA
    Posts
    105
    ank you NTC for your response, I checked the items you stated and I don't see any of those things set. The only combo boxes I have are to look up an acount by region then by name. I tried to create a new query for the subform and did not make a difference. Then I deleted the subform by mistake and when I created it again I got a totally different error.
    Something about Access had an error communicating with the OLEserver or Active X Control. Don't know what I did but I back up the database in the morning so I am going to use that one and start over with the linking procedures. I got it working on 2 of the 3 subforms and would try again hopefully with better results. I have 3 databases I am working on right now and hve to switch attention between these 3.
    Thanks I will let you know how it turns out. I will leave this open for now or until I complete the task and will post my results.

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

Similar Threads

  1. Replies: 22
    Last Post: 05-06-2013, 11:39 AM
  2. Replies: 4
    Last Post: 01-05-2013, 11:07 AM
  3. Replies: 4
    Last Post: 01-31-2011, 03:19 PM
  4. Hyperlink on a subform?
    By yes sir in forum Access
    Replies: 23
    Last Post: 10-08-2010, 05:38 PM
  5. Subform scrolling issue
    By Jerry8989 in forum Forms
    Replies: 4
    Last Post: 12-08-2009, 01:12 PM

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