Solved

button add new

Posted on 2011-03-14
3
290 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
  • 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Read about achieving the basic levels of HRIS security in the workplace.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

770 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