Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    If you don't want user to navigate with the navigation bar then disable it.



    I don't know anyway to directly associate code with the navigation bar. Navigation will trigger the form OnCurrent event.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  2. #17
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    If you don't want user to navigate with the navigation bar then disable it.

    I don't know anyway to directly associate code with the navigation bar. Navigation will trigger the form OnCurrent event.
    even if I put a check for requirements before moving to next record on the current event the record will still move to the next one if the requirements functions are not met by the user of the form

    so I can't prevent the user from moving to the next record.

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    If this data validation is done on data entry to new record, navigation of existing records should not be an issue because an incomplete record will not be allowed.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #19
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    If this data validation is done on data entry to new record, navigation of existing records should not be an issue because an incomplete record will not be allowed.
    This is an edit form. If staff remove information they will be prompted to return it but when they close the form they will be forced to return data to the field.

    however if they move to the next record I can't prevent them or force them to return data that.

  5. #20
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    If user does edit data then the form BeforeUpdate event will trigger and that's where data validation code should be. The UPDATE and navigation should be canceled and user is forced to complete data entry. At least that is my understanding of form BeforeUpdate. I haven't actually used it in my project. Data entry/edit is by Single View form and validation code is behind button click event.

    Could set fields as required in table and let Access nag. They will eventually get tired of being hand-slapped by Access and learn to finish data entry.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #21
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    If user does edit data then the form BeforeUpdate event will trigger and that's where data validation code should be. The UPDATE and navigation should be canceled and user is forced to complete data entry. At least that is my understanding of form BeforeUpdate. I haven't actually used it in my project. Data entry/edit is by Single View form and validation code is behind button click event.

    Could set fields as required in table and let Access nag. They will eventually get tired of being hand-slapped by Access and learn to finish data entry.
    that's true but in our office sometimes the user might be organising something over a period of an hour and might not have the data on hand to complete the form when it nags, they might remove data and then come back later to complete the form then move to the next record.

    They know the data is missing - for now.

    However sometimes they forget after an hour has passed and move to the next record (or accidental click)

    I'm surprised the office team didn't think about this type of situation - an unload next record event would be handy....

    The only way I can think of covering for this is having my own record count & navigation buttons as controls instead of the bottom one.

  7. #22
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    That's what I do. Didn't I mention that earlier?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #23
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    That's what I do. Didn't I mention that earlier?
    yup

    *sadface*

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

Similar Threads

  1. Replies: 4
    Last Post: 10-29-2014, 03:49 PM
  2. Replies: 3
    Last Post: 09-19-2012, 07:34 AM
  3. Moving to next/previous record in a form.
    By ser01 in forum Programming
    Replies: 3
    Last Post: 08-07-2012, 06:11 PM
  4. Moving to new record from a different form
    By liam_898 in forum Forms
    Replies: 12
    Last Post: 05-05-2012, 12:34 PM
  5. moving between subforms using wrong event?
    By jmoore in forum Programming
    Replies: 8
    Last Post: 08-02-2011, 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