Results 1 to 2 of 2
  1. #1
    miicker is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    18

    Question Form empty by defeault

    Hello,
    I have a DB, and I've created a from. I want the form to be blank by default, but I want allow users to browse trough records anyway.

    So what i've done:
    In the form properties I've set ''Data Entry'' to ''Yes''.
    This worked so far, the form is now blank by default.

    I've putted in buttons that allows users to browse trough records, those buttons do not work any more.

    So is there a button that opens the first record, so that the navigation buttons work again, if you know what I mean.



    Kind regards,

    Miicker

  2. #2
    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
    Common sense would dictate that Data Entry would need to be set to 'Yes/True' in order to... enter data, but of course, this is not true! When Data Entry is set to Yes you can only enter New Records, not view existing Records, as you've found out. Set Data Entry back to No, then use this code:

    Code:
    Private Sub Form_Load()
     DoCmd.GoToRecord , , acNewRec
    End Sub


    It'll now open to a new, blank Record, but the user can also click on your custom Nav Buttons and go to First Record, Previous Record, or whatever.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. loading empty form
    By Suzie2012 in forum Forms
    Replies: 5
    Last Post: 10-10-2012, 07:03 PM
  2. No results w/empty form
    By Bruce in forum Queries
    Replies: 9
    Last Post: 05-06-2012, 09:52 AM
  3. Replies: 2
    Last Post: 04-23-2012, 10:13 PM
  4. Replies: 4
    Last Post: 11-20-2011, 01:08 PM
  5. Populate or Empty Form
    By gazzieh in forum Forms
    Replies: 0
    Last Post: 12-02-2009, 05: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