Hello:
I have a text box on a form who's control source is the primary key field of a table. I would like the form to open to the next value (to add a new record). The following expression sets the default value for the Data of this text box.
(DMax('[DTNumber]','[Sypher Drawing Transmittal Table]')+1,1)
The form properties are set as follows:
Allow Edits Yes
Allow Delections Yes
Allow Additions Yes
Date Entry No
The form does not open to the next available value and when I add a Add Record control I get a #error message in the form text box.
When I set the Data Entry property of the form to Yes it opens with "0" as the value not the next incremented value in the table. Any ideas on how to set the incremental value of this form on open?
Thanks in advance.
I have a text box on a form who's control source is the primary key field of a table. I would like the form to open to the next value (to add a new record). The following expression sets the default value for the Data of this text box.
(DMax('[DTNumber]','[Sypher Drawing Transmittal Table]')+1,1)
The form properties are set as follows:
Allow Edits Yes
Allow Delections Yes
Allow Additions Yes
Date Entry No
The form does not open to the next available value and when I add a Add Record control I get a #error message in the form text box.
When I set the Data Entry property of the form to Yes it opens with "0" as the value not the next incremented value in the table. Any ideas on how to set the incremental value of this form on open?
Thanks in advance.