Solved

button add new

Posted on 2011-03-14
3
299 Views
Last Modified: 2012-05-11
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?
0
Comment
Question by:jagguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 19

Expert Comment

by:MINDSUPERB
ID: 35126096
<How can i link to another form via a button>

Private Sub btnOpenForm_Click()
DoCmd.OpenForm "frmName", acNormal, , , acFormAdd
End Sub


< how can i disable the add new default feature when scrolling through forms? >

Go to Form property -> Data Tab -> Set Allow Additions to "No"

Sincerely,
Ed
0
 

Author Comment

by:jagguy
ID: 35126703
can i do this with property click or something without vba code?

Private Sub btnOpenForm_Click()
DoCmd.OpenForm "frmName", acNormal, , , acFormAdd
End Sub
0
 
LVL 19

Accepted Solution

by:
MINDSUPERB earned 500 total points
ID: 35126963
Yeap, you can. Use the hyperlink property.

Go to the Button property ->Format Tab -> Hyperlink Sub Address
then click for ... and locate the form you want to opern.

Sincerely,
Ed
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question