Access 2010
Hi all,
I use the following code to open a splitform filtered by projectnumber and create a new record:
DoCmd.OpenForm "ROVActivities3F", acNormal, "", "[ProjectNumber]=Forms!NewForms!LastProjectNumber", acFormEdit
DoCmd.RunCommand acCmdRecordsGoToNew
This all works fine when I have at least one record with this projectnumber. The first time I create a record with this projectnumber however (meaning the datasheet form is still empty) I get the error that the "acCmdRecordsGoToNew" command isn't available.
Any thoughts on how to fix this?
Thanks!
Mark
Hi all,
I use the following code to open a splitform filtered by projectnumber and create a new record:
DoCmd.OpenForm "ROVActivities3F", acNormal, "", "[ProjectNumber]=Forms!NewForms!LastProjectNumber", acFormEdit
DoCmd.RunCommand acCmdRecordsGoToNew
This all works fine when I have at least one record with this projectnumber. The first time I create a record with this projectnumber however (meaning the datasheet form is still empty) I get the error that the "acCmdRecordsGoToNew" command isn't available.
Any thoughts on how to fix this?
Thanks!
Mark