Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2009
    Posts
    2

    Form opening with data instead of blank

    I am trying to make some changes to a database I inherited. On the main form, I select the county I want, then click on add/edit. That then opens a form which puts that data into that county database. When I open the form, it doesn't open to a blank form, it opens to a record thats already in the database. For instance in this specfic database, there are 10,430 records. I would like it to open a blank form when add/edit is selected and have that black form be 10,431. I also want to be able to set the year and not let it be changed. Then, if it is the first entry for that year, the Document Line needs to start at one and increase by one each time a new entry is made for that year. I've attached a copy of the code behind the form. Any help is greatly appreciated.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Is this code from the form with the Add/Edit button or the form that is being opened with that button? I would suggest *strongly* that you study and completely understand this code before making any changes.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-23-2008, 08:43 AM
  2. VBA Opening Excel File and Placing Data in Cells
    By BobTHG in forum Programming
    Replies: 0
    Last Post: 01-13-2008, 03:01 PM
  3. Replies: 2
    Last Post: 12-01-2006, 07:23 AM
  4. Replies: 0
    Last Post: 11-17-2006, 09:38 AM
  5. Automatic Filtering when Opening form
    By Karyn-2000 in forum Forms
    Replies: 1
    Last Post: 12-03-2005, 09:29 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