Results 1 to 2 of 2
  1. #1
    mattellenburg is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    2

    Creating dynamic hyperlinks


    I have a form that lists records in a table. I would like to have a hyperlink beside each record that will open the data entry form and navigate to that specific record. Right now, the use can only open the form for all records and has to use the record navigation buttons to find the desired record.

  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    If you are using docmd.openform, the fourth parameter on the Openform command allows you to specify a Where condition to limit the records the form displays. You can accomplish what you are trying to do by using a where condition that specifies only the one record you need:

    DoCmd.Openform MyForm, , , "Record_ID = " & Me![Search_record_ID]
    MyForm is the name of your data entry form,
    Record_ID is the name of the field in your table that uniquely identifes each record, and
    Me![Search_record_ID] is the name of the control on your main form that contains the ID .

    HTH

    John

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

Similar Threads

  1. Creating Hyperlinks in a report
    By baseborn in forum Reports
    Replies: 6
    Last Post: 01-25-2014, 03:08 PM
  2. Creating a Dynamic Query
    By gdshih in forum Queries
    Replies: 4
    Last Post: 11-28-2011, 02:13 PM
  3. Creating a dynamic search box in Access 2010
    By bob500000 in forum Access
    Replies: 1
    Last Post: 11-24-2011, 02:27 PM
  4. Creating a Dynamic Query
    By JackRush in forum Queries
    Replies: 2
    Last Post: 06-26-2011, 10:47 PM
  5. Replies: 5
    Last Post: 05-03-2011, 07:55 AM

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