I want to open a form in Access 2007 (on WinXP) by clicking a button on a different form, and I want the form to open with blank fields, to create a new record in the underlying table.
My code is as suggested in the five-year-old posting, but it doesn't work:
Expand|Select|Wrap|Line Numbers
- Private Sub btnSetNewGroup_Click()
- DoCmd.OpenForm "frmGroupBasics", , , , acFormAdd
- End Sub
Any ideas what's lacking?