Results 1 to 5 of 5
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919

    Setting and loosing focus on a sub-form

    In The Screenshot below, the line pointed to is a single record in a sub-form. The user gets the error when he/she tries to move the focus to the date field, certainly a desirable action. What do I need to do to accommodate that action without getting an error? The action is accepted on the second attempt. Also, more errors are encountered when any action attempts to loose that same focus.
    Click image for larger version. 

Name:	000.jpg 
Views:	10 
Size:	90.7 KB 
ID:	47766

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    Quite possibly a corrupt control, or the link between it and the code project is broken, or the property for the event is still in the property sheet and the event was deleted, or the code project needs to be compiled, or there is something amiss about your form code, or ...

    The error message is about not being able to find the specified event, not losing focus?

    EDIT
    Also, more errors are encountered when any action attempts to loose that same focus.
    I'd say that all of those actions are trying to set the focus to the same thing, hence you get the same result.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    Must have been a corrupted control. I deleted the control and re-created it from scratch.

    Now, if I could just get Access to clear the Debug Breakpoints I'll be good to go!

  4. #4
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    Now, if I could just get Access to clear the Debug Breakpoints
    As in Alt+F9 ?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    Yes. I minute after I posted I remembered how to delete the line, re-compile and re-insert. All is good now.
    Thanks,
    Bill

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

Similar Threads

  1. Setting focus to an ID in a LISTBOX
    By sarcher in forum Programming
    Replies: 1
    Last Post: 05-05-2020, 11:48 AM
  2. Replies: 3
    Last Post: 06-29-2015, 09:50 AM
  3. Setting the focus on a subform
    By Paul H in forum Forms
    Replies: 3
    Last Post: 01-10-2012, 09:17 AM
  4. Setting focus on a tabbed form
    By crowegreg in forum Forms
    Replies: 21
    Last Post: 08-27-2011, 09:22 AM
  5. Setting Focus on a Form
    By MFeightner in forum Forms
    Replies: 1
    Last Post: 07-30-2009, 07:49 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