HELP with Code to Cancel Record & Keep Data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RosieLavoie
    New Member
    • Jul 2019
    • 1

    HELP with Code to Cancel Record & Keep Data

    Hi,

    need help with the following:

    Access database: when entering in a preset form, it is determined it is not required but would like to retain the data entered but cancel the record, can this be done?

    Essentially would like it to do the following:

    Code:
    OnClick
    DoCmd.SaveRecord
    DoCmd.CancelRecord
    DoCmd.MovetoNewRecord
    Please help, I have been stuck and not able to use database

    thank you,
    Last edited by twinnyfo; Jul 25 '19, 06:42 PM. Reason: aded mandatory code tags
  • twinnyfo
    Recognized Expert Moderator Specialist
    • Nov 2011
    • 3664

    #2
    Rosie,

    Welcome to Bytes!

    Would you be able to clarify exactly what you mean when you say:
    it is determined it is not required but would like to retain the data entered but cancel the record
    If the data is not required, then why keep it? If you're keeping it, then just keep it!

    I think further clarification would be required for us to give you any meaningful assistance.

    Thanks for your clarification.

    Comment

    Working...