Results 1 to 2 of 2
  1. #1
    jagguy is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2011
    Posts
    4

    button add new

    In acces 2007 I want to create a form where i scroll through records but the only way to edit or add a new record is to click on a button and go to another form.



    How can i link to another form via a button and how can i disable the add new default feature when scrolling through forms?

  2. #2
    timmy is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    62
    i think i know what you want to do... try this

    open the property sheet of a text box, on the data tab set locked to yes.
    then create a button and add this behind it:

    Code:
    Function 
    ButtonName___On_Click()
        DoCmd.GoToRecord acForm, "FormName", acNewRec
        DoCmd.SetProperty "TextBoxName", acPropertyLocked, "No"
    End Function
    you have to enter a DoCmd.SetProperty line for every text box.

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

Similar Threads

  1. Validation Button
    By GraemeG in forum Programming
    Replies: 1
    Last Post: 02-18-2011, 09:10 AM
  2. Button on the form
    By zhshqzyc in forum Access
    Replies: 1
    Last Post: 01-21-2011, 11:21 AM
  3. Replies: 1
    Last Post: 07-27-2010, 02:27 PM
  4. Replies: 6
    Last Post: 02-09-2010, 07:53 AM
  5. Add/Delete Button
    By ocemy in forum Forms
    Replies: 1
    Last Post: 03-29-2009, 08:08 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