Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Microsoft Access Forum
Derreck Sunderland 
   
12 years ago
Hello Larry,

To create a button to open a form to a new record you can use either the macro builder or a VBA event procedure.
The Macro Builder
1. Create the button. If the wizard pops up, close it.
2. Open the Property Sheet and click the Events tab.
3. On the OnClick row, click the   button to the far right of the row.A dialog box will open with three choices,
a. Macro Builder
b. Expression Builder
c. Code Builder
4. Choose the Macro Builder and the Macro Pane will open.
5. Type openform in the box and press tab.
6. In the form name type the name of the form. You can also choose the form in the dropdown list.
7. The form view will default to form. This is what you want.
8. In the data mode type add or choose it from the dropdown list.
9. Save it and return.
VBA Event Procedure
1. Repeat steps 1-3 above.
2. Choose the Code Builder
3. In the Code Builder pane you will see:
Private Sub Command0_Click()
DoCmd.OpenForm "ClientF", , , , acFormAdd
End Sub
Note: The Italic  DoCmd.OpenForm "ClientF", , , , acFormAdd will not be there. You will have to type this in yourself, with the name of the form you want to open. For Example, if you want to open a form named EmployeeF, type DoCmd.OpenForm " EmployeeF ", , , , acFormAdd.
I hope this helps!

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/15/2026 4:12:02 AM. PLT: 1s