Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793

    There's been a few posts about that recently, hasn't there?
    Yes, well look how long it has been an issue. I've turned off updates for Access. If it ain't broke...
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  2. #17
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793
    Quote Originally Posted by tholden View Post
    ...is there a way to make the database more robust so bugs and crashes etc cant happen?
    Short answer, no. All you can do is design to minimize it, beginning with splitting the db, not sharing the fe, hiding the nav pane, disabling default right click menus, disabling shift bypass, all the way to hiding the ribbon and rolling your own ribbon.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #18
    moke123's Avatar
    moke123 is online now Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,651
    Quote Originally Posted by Micron View Post
    Anyone can give you a fish - I try to let others learn to catch their own, although I cannot say that I stick to it religiously.
    LOL. When I saw your response after I posted I was going to post "I gave you the fish, Microns teaching you how" Too funny.

  4. #19
    tholden is offline Novice
    Windows 10 Office 365
    Join Date
    Aug 2020
    Posts
    14
    I went into my table after adding a hyperlink to it, worked great when i double click, opened it no problem, but when I tried (below) code on my listbox, getting an error. Any ideas on this? feel like we are close
    Click image for larger version. 

Name:	0002.PNG 
Views:	9 
Size:	30.9 KB 
ID:	42698


    Private Sub List308_DblClick()

    Application.FollowHyperLink Me.List308.Column(6)

    End Sub

  5. #20
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793
    One reason could be a disconnect between the control and the code. First, go to the property sheet of the control in design view. On the event tab, click the ellipses (...) and it will take you to the code. If it creates a new procedure, you must have changed the control name. If it goes to the same procedure, it will be reconnected if it was disconnected. The only way you'll know is if it works.

    If not, it could be the syntax you have used. Try parentheses around the reference: (Me.List308.Column(6))
    or declare a variable of type String and use that so that the reference (path) is coerced to a string

    or substitute a working url for the listbox reference and see if it works. If it does, then there possibly there is an issue with the reference. If it doesn't then I'm not sure if file: portion is OK for this as the method was meant to navigate to web pages. Try the hard coded method without file: portion. String paths probably have to be enclosed in quotes within () as in Application.FollowHyperlink ("https:.....")
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #21
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    Private Sub List308_DblClick() was not created by VBA as the event name.

    It should be this :
    Private Sub List308_DblClick(Cancel as Integer)

  7. #22
    moke123's Avatar
    moke123 is online now Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,651
    I rarely use followhyperlink anymore. I use Dev Ashish's fHandleFile routine which you can find here . . . http://access.mvps.org/access/api/api0018.htm
    The advantage being it opens the link in windows default programs (ie. a browser for a URL, your mail program for an email address, etc.)

  8. #23
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793
    It should be this : Private Sub List308_DblClick(Cancel as Integer
    Good catch. Clicking on the ellipses would catch that because it would begin a new and properly defined procedure.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 9
    Last Post: 11-19-2015, 03:05 PM
  2. Double Click Listbox
    By HelpDesk in forum Access
    Replies: 12
    Last Post: 06-29-2015, 10:38 AM
  3. prevent deselect items in the listbox after right click
    By masoud_sedighy in forum Programming
    Replies: 1
    Last Post: 08-13-2013, 01:06 AM
  4. How to Restrict the Listbox on double click
    By ganeshvenkatram in forum Access
    Replies: 2
    Last Post: 07-07-2011, 10:05 PM
  5. Rescrolling in ListBox on Double Click
    By jackkent in forum Access
    Replies: 6
    Last Post: 09-28-2010, 11:56 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