Results 1 to 2 of 2
  1. #1
    stuart_roberts is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Oct 2016
    Posts
    14

    Form Field Hyperlink to open record in another form


    hi

    i am trying to open a record from a sub form into another form by clicking on a hyperlink

    the sub form is bound to a query

    here is my code

    Code:
    Private Sub txtTancNumber_Click()
        DoCmd.OpenForm "frm_NewCavityTanc", WhereCondition:="[Tanc_ID]=" & Me.txtTancNumber
    End Sub
    but when i click on the link

    i get a pop up box appear asking for the Tanc_ID

    how do i stop this

    Click image for larger version. 

Name:	access.PNG 
Views:	6 
Size:	9.6 KB 
ID:	33988

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 5
    Last Post: 10-18-2016, 06:00 AM
  2. Replies: 1
    Last Post: 02-06-2016, 05:30 AM
  3. Replies: 9
    Last Post: 06-12-2014, 01:36 PM
  4. open hyperlink in form - using VB
    By ender in forum Programming
    Replies: 1
    Last Post: 02-17-2012, 04:14 AM
  5. Hyperlink to open a form
    By accessnewb in forum Access
    Replies: 12
    Last Post: 07-27-2011, 07:33 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