Results 1 to 8 of 8
  1. #1
    carmenv323 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Oct 2021
    Location
    Massachusetts
    Posts
    78

    Navigation Form - don't click

    I have a Navigation Form with buttons to activate different forms.

    My issue is that when a user is on a form they will sometimes, for whatever reason, click on the area away from the form - in the navigation form area which erases the form



    How can I make that area not clickable without disabling the buttons? or prevent the form from erasing?

    Do I make sense?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    what is causing it to erase? normally, clicking off the form simply SAVES the data.
    is there code in it to cause it to erase? NO entry form ever created naturally erases data.

    what MIGHT be happening is the form went to the next record.
    (but the record would still be saved in there)
    to fix, set the CYCLE property to : Current Record

  3. #3
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793
    in the navigation form area
    This means the area below the nav buttons (assuming yours are located one below the other)? The control that contains the buttons does have events listed for it but I have found that they don't fire (at least not the click event).

    If you mean they're clicking on navigation buttons, then yes, the form in view will close (if that's what "erase" means in this case). Those buttons do have the 'enabled' property but I have not tried disabling that. The only time I bother with nav forms is when helping out here, so my knowledge of them is a bit limited.
    Last edited by Micron; 04-27-2022 at 09:15 AM. Reason: clarification
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    carmenv323 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Oct 2021
    Location
    Massachusetts
    Posts
    78
    The Cycle property is set to Current Record already.

    I added data to the form, then clicked away from the form into the navigation form and the form reset itself.

  5. #5
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,540
    Can you post a copy of the db
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  6. #6
    carmenv323 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Oct 2021
    Location
    Massachusetts
    Posts
    78
    I was able to get around it by adding DoCmd.Save on LostFocus of the form.

    Thank you

  7. #7
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,540
    Quote Originally Posted by carmenv323 View Post
    I was able to get around it by adding DoCmd.Save on LostFocus of the form.

    Thank you
    AFAIK the default behaviour is for a bound form save new/edited data when the focus leaves. No code required. I don't think the code you are using will save data. I believe it is used to save changes to design of the form.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  8. #8
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793
    Have seen that mentioned before. Create a new record and click save button on ribbon and record will save. I don't think it's because focus is lost on the form. M$ documentation says " form" will save - whatever that is?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-03-2022, 12:39 PM
  2. Replies: 11
    Last Post: 10-22-2020, 02:57 AM
  3. Replies: 4
    Last Post: 09-05-2018, 02:15 PM
  4. Replies: 5
    Last Post: 08-06-2018, 05:31 PM
  5. Replies: 5
    Last Post: 02-07-2014, 08:37 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