Results 1 to 4 of 4
  1. #1
    islandboy is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2009
    Posts
    63

    Error while trying to add delete link button.

    hi guys.



    i am trying to add a button that will delete a link containing the image link into a table.

    i am getting a debug error when a click on it.

    Run-time error '2110':

    Microsoft Office Access can't move focus to the control Link.

    Private Sub cmdDeleteImage_Click()

    Me![Link].Enabled = True
    Me![Link].SetFocus <-----error is here at first.
    Me![Link].Locked = False
    Me![Link].Text = ""
    Me![Link].SetFocus
    Forms![Employee Table].Form.Requery
    Me![Link].Locked = True
    Me![Link].Enabled = False


    End Sub

    hope i can solved it.

  2. #2
    islandboy is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2009
    Posts
    63
    i found what i was doing wrong...

    my link on the form was set to hidden i just switch to visible
    and that did the trick, now i just put that link behind the picture.

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,923
    Excellent! Glad to hear you got it sorted.

  4. #4
    islandboy is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2009
    Posts
    63
    thanks mate

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

Similar Threads

  1. Replies: 12
    Last Post: 10-20-2014, 11:22 AM
  2. Command button help - delete record
    By Zukster in forum Forms
    Replies: 0
    Last Post: 08-27-2009, 08:47 AM
  3. Best way to link tables together?
    By marleyuk in forum Access
    Replies: 1
    Last Post: 06-07-2009, 08:44 AM
  4. Add/Delete Button
    By ocemy in forum Forms
    Replies: 1
    Last Post: 03-29-2009, 08:08 PM
  5. Find Record button error
    By Zedlexx in forum Forms
    Replies: 0
    Last Post: 03-11-2009, 09:26 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