Results 1 to 4 of 4
  1. #1
    NadiaVKhan is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    25

    Show Blank Form on Open

    Hello

    I have a Form that is based on a Query. On this Form, I have a Field and Button and filters and me.querys the Form. However, when I open the form, it automatically displays ALL data from my query. How do I make my form display No data on load?



    Thanks

  2. #2
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051

    Show Blank Form on Open

    Any help?

    https://access-programmers.co.uk/for...d.php?t=110652

    Or on the form_open event add

    DoCmd.gotorecord, , acnewrec

  3. #3
    NadiaVKhan is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    25
    The link did not help.

    Also, I am using a continuous form. So the DoCmd.gotorecord, , acnewrec does not work

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Set the Form's Data Entry Property to Yes, in the Properties Pane (Properties - Data - Data Entry) and then, in the OnClick event that starts the filtering process, have the first line of code be

    Me.DataEntry = False

    Now, you have to understand that when the Form first opens, this is going to show one blank Record, with nothing else showing except the background color from that Record to the bottom of the Form. You cannot show multiple 'empty' rows in a Continuous Form; they show a row-per-Record, plus a row for entering a new Record.

    Linq ;0)>

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

Similar Threads

  1. Replies: 1
    Last Post: 01-24-2017, 09:50 AM
  2. Open Form to be blank
    By buck in forum Forms
    Replies: 6
    Last Post: 01-10-2014, 03:04 PM
  3. Replies: 10
    Last Post: 06-13-2012, 05:57 AM
  4. How to open a blank form?
    By WhatnThe in forum Access
    Replies: 15
    Last Post: 08-05-2011, 02:41 PM
  5. I want my form to open blank
    By uneek78 in forum Forms
    Replies: 10
    Last Post: 01-12-2011, 01:01 PM

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