Anyone have any Ideas on how to accomplish this.
Auto Increment ID field of Linked table when entering on Form
Collapse
X
-
-
The problem is that I only want to use the DMax() when I use the 'cmdNewItem' button to open the "Problem Records Detail" form for adding a new record.Comment
-
-
But when I click the ID in the "Problem Records List" Form, it will also bring up that record in the "Problem Records Detail" form. Will this be problematic in that case?Comment
-
I am still a little confused with the syntax. Is something like the following ok:
Code:DMax("ID", "dbo_problems", "ProblemID = ID +1")
Comment
-
Ok, let me try that. This should then populate the ID textbox on the "Problem Records Detail" form?Comment
-
How can I test thatCode:DMax("ID", "dbo_problems") + 1
Comment
-
-
To Test in immediate window I used:
Code:? DMax("[ID]", "dbo_problems") + 1
How can I assign this to the control on the form that I want the value to go into though?Comment
-
Comment