Results 1 to 5 of 5
  1. #1
    rfurelos is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2015
    Posts
    2

    Hyperlinks within Queries


    Hello. I am a new user to Access and I was wondering on when a query returns results to able to click on a field and it take me to the form that I created with that specific record information?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    There is a field property in the table for Hyperlink. A field with the Hyperlink property will follow the hyperlink when the field is clicked.

    I recommend avoiding the hyperlink field property at the table level. I also recommend not letting users have access to queries. Instead, use forms as the graphical user interface. You can store text in a field and then convert that text into a hyperlink at the Form level.

  3. #3
    rfurelos is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2015
    Posts
    2
    Thank you ItsMe.... Where do you recommend to put the hyperlink and within a form would I be able to set it up as a data view? I guess I should explain what I am trying to accomplish. With in my "Main form" which provides a user with all the information on one of our vendors. With in that same form there is a button that the the user can click on which would open another form which houses Outreach information as well as who is assigned to the client, follow up date and time. I am trying to create something (report, query) that the user can run to provide them with in a specific date range of all their follow ups. Once the user runs this "report, query, whatever" they would be presented with a datasheet view with all their specific clients they have set up for follow up. Once they are in the datasheet they would be able to click on the client and it would bring them to the "Main form" of the client where they would be able to edit that specific record (client). I hope I made sense.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by rfurelos View Post
    ...Where do you recommend to put the hyperlink and within a form would I be able to set it up as a data view?...
    I do not have a lot of time to address each of your questions right now. I will say this, for now, some controls on forms have the hyperlink property. A common approach is to use some very simple VBA programming to pass the literal text to method like FollowHyperlink. An event handler like a click event or a double click event of a TextBox Control (yes, even in Data Sheet View) could get the whole thing rolling.

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by rfurelos View Post
    ... I guess I should explain what I am trying to accomplish....
    I guess I should have took the time to understand your objective, as you defined it in post #3. I do not see any need for a hyperlink in this scenario. You could simply open an object that is within your Access DB. Some examples of objects that can retrieve data for the user are forms and queries. It is advisable to use forms exclusively as an user interface.

    What you are describing is a search form with a date range. So a couple unbound textboxes with their data type set to date would be a place to start. A Dynamic Parameterized Query could retrieve the data desired and display it in your form.

    If you create a query and enter dates in the criteria field (towards the bottom of the window and within the grid), you might have the beginnings of what you need. I would start with >#01/01/2015#. The next step would be to reference the unbound textbox controls in your form. These are the controls I was talking about earlier.

    If you type "Forms!" (without the quotes) into the Criteria field, you will see intellisense pop up. Select the form name and then select the control name. After playing around with your query, you may have the capability to get one record as a result of your query. Maybe one record equal to the value of your unbound control within your form.

    Depending on where your date fields are within your table and how you are comparing things, you may need to use the BETWEEN operator. Less than and greater than operators may not be suitable.

    Here is a tutorial. Not sure what the content is. Just might give you some additional info/insight.
    https://www.youtube.com/watch?v=1gp-Ph9zJ04

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

Similar Threads

  1. hyperlinks
    By sdel_nevo in forum Programming
    Replies: 2
    Last Post: 06-11-2013, 02:34 PM
  2. Hyperlinks (UNC)
    By ccordner in forum Forms
    Replies: 1
    Last Post: 02-01-2012, 02:16 PM
  3. Help with hyperlinks
    By dumbFounded in forum Access
    Replies: 4
    Last Post: 04-26-2011, 01:40 PM
  4. bound Hyperlinks
    By lazrus55 in forum Access
    Replies: 0
    Last Post: 06-03-2010, 08:10 AM
  5. Hyperlinks
    By Issy in forum Access
    Replies: 0
    Last Post: 11-13-2007, 04:46 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