Results 1 to 6 of 6
  1. #1
    Tari is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    36

    Question Help with startup

    Hey,

    I'm not very good with Access, so I need your help please.



    I have the startup defined to open one of my forms when you open the DB. When it opens it automatically displays the first record. I need it to show the last record though, so an empty one. How can I get that done?

    Same with a macro I'm using:

    Macro Name: AddCustomer : On Click
    Action: Open Form
    Requery

    Form Name: Add or Delete Customer
    View: Form
    Filter Name: <blank>
    Where Condition: <blank>
    Data Mode: Add
    Windows Mode: Dialog

    I need this macro to display a blank record as well

    Thanks already for your time!

    Tari

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    a BLANK record or a NEW record? if NEW, change the "dataentry" property. that's it.

  3. #3
    Tari is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    36
    Thanks for your quick answer Adam.

    Yes new record, sorry poor choice of words

    And unfortuantely I don't quite understand your answer. I please need exactly which entry to change and what to change it into. Sorry, as I said I'm not good at this.

    Thanks!

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    know where the property sheet is for forms? It's in the toolbar in 03. Open the form in design view and click the icon on the toolbar at the top that looks like part of a hand holding an 8x10 piece of paper in it's fingertips.

    Or...right click on any control and choose "properties". Then in the dropdown menu at the top of the property window, look for the word "form".

  5. #5
    websterh is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    8
    I believe another option is to create an Event Procedure with the On Load event.


    • select, in the Design view, the Form's window (top-left should be a small black box) and then click-and-display the properties (should be a pop-up view on the right-side of screen) and select the tab called 'Event'.


    • then with the 'On Load' option select from the drop down [Event procedure] - when done click into it and paste the following code to this event/procedure:


    DoCmd.RunCommand acCmdRecordsGoToNew

    this opens the form to a new record (empty/blank fields); find records can still be done if you want to insert a find record button or using the built in option in the MS Access menu area.

    this code has worked for me in both Access 03 and 07.

  6. #6
    Tari is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    36
    Quote Originally Posted by ajetrumpet View Post
    know where the property sheet is for forms? It's in the toolbar in 03. Open the form in design view and click the icon on the toolbar at the top that looks like part of a hand holding an 8x10 piece of paper in it's fingertips.

    Or...right click on any control and choose "properties". Then in the dropdown menu at the top of the property window, look for the word "form".
    That worked, awesome! Solves another problem of mine too, as users tend to not pay attention and overwrite older records Thank you!

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

Similar Threads

  1. Access Freezes at startup
    By pokerim in forum Access
    Replies: 1
    Last Post: 07-20-2010, 06:28 AM
  2. Switchboard at startup
    By jamie c in forum Access
    Replies: 10
    Last Post: 03-04-2010, 12:16 PM
  3. Startup form not showing?
    By cfasoftware in forum Access
    Replies: 1
    Last Post: 01-21-2010, 03:10 AM
  4. startup problem
    By Eric1066 in forum Access
    Replies: 3
    Last Post: 12-07-2009, 10:01 AM
  5. Startup Menu Greyed Out
    By slash75 in forum Access
    Replies: 0
    Last Post: 02-14-2007, 04:55 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