Results 1 to 7 of 7
  1. #1
    CP611 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    55

    Refreshing form back to blank


    I have made a form where people can press a button (Add new record), filll in the required fields and then press Submit (the form operations, and refresh form data). Which adds in the new record fine, is there a way to make the form then go back to being blank once they have submitted their information! I am a complete beginner with Access so not really used to all the coding elements! thank you

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Try this somewhere in your code: DoCmd.GoToRecord , , acNewRec
    Probably just before the End Sub line. Can't be specific unless you post your code. If you do post code, please use code tags (# button on posting toolbar) for more than a few lines.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    CP611 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    55
    HI there, I haven't really used code, I just added in a button from the task bar. Where would I find this code to add the section in your mentioned? Thanks

  4. #4
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Sorry, not following. By task bar you mean Ribbon? I'm guessing you are using macros to do what you've accomplished so far. If using macros, add the action to go to a specific (new) record. I'd have to research how to do that because I rarely use macros. If you want to post a db, copy your db, compact/repair it and if OK, zip it and post here. See how to attach files at the top of this page.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Found it (assumes this is what you're doing/need). Click Add New Action drop down in your current macro. Find GoToRecord and fill out the parameters. If this isn't what you need and you're not using code then I have no clue as to what you've created so far.

    Click image for larger version. 

Name:	1GoToNewRec.jpg 
Views:	9 
Size:	25.8 KB 
ID:	50932
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    CP611 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    55
    That's worked, thank you

  7. #7
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Glad I could help. When you have a solution, please mark your thread as solved to save others time. See "Thread Tools" at the top of your first post.
    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. Form seems to keep refreshing.
    By kathiepreston in forum Forms
    Replies: 24
    Last Post: 09-15-2021, 07:21 AM
  2. Replies: 2
    Last Post: 03-04-2020, 07:45 PM
  3. Replies: 1
    Last Post: 01-31-2018, 04:06 PM
  4. Refreshing the form vs. requerying
    By Access_Novice in forum Forms
    Replies: 9
    Last Post: 01-01-2014, 07:24 PM
  5. Replies: 4
    Last Post: 05-21-2012, 08:21 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