I saw this question elsewhere on this site, but it was five years old, so I'm asking anew . . .
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:
What happens is that the form opens to the first record in the table, with the first field highlighted.
Any ideas what's lacking?
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:
Code:
Private Sub btnSetNewGroup_Click() DoCmd.OpenForm "frmGroupBasics", , , , acFormAdd End Sub
Any ideas what's lacking?
Comment