C
chopper57 via AccessMonster.com
I have a MainForm called MainForm, on the main form I have two datasheet
forms.
The first datasheet Form called SovItems and is linked to the MainForm with a
field called Division
The second datasheet is called SovInstalled and is linked to the first
datasheet using a field called ItemNo by using a unbound txtbox called
txtLink (this Link works great everything is in sync.)
What I need to do is have a field in the second datasheet Form auto increment
a number.
The field name is PayAppNo.
This is what I have tried:
Me.PayAppNo = Format(Nz(DMax("[PayAppNo]", "tbl_SovInstalled", "[ItemNo]=" &
"Forms![frm_MainForm]![Division]"), 0) + 1, "00")
I get the first number to enter (1) but each new entry is also (1), it's not
adding a number, every entry is the number (1).
forms.
The first datasheet Form called SovItems and is linked to the MainForm with a
field called Division
The second datasheet is called SovInstalled and is linked to the first
datasheet using a field called ItemNo by using a unbound txtbox called
txtLink (this Link works great everything is in sync.)
What I need to do is have a field in the second datasheet Form auto increment
a number.
The field name is PayAppNo.
This is what I have tried:
Me.PayAppNo = Format(Nz(DMax("[PayAppNo]", "tbl_SovInstalled", "[ItemNo]=" &
"Forms![frm_MainForm]![Division]"), 0) + 1, "00")
I get the first number to enter (1) but each new entry is also (1), it's not
adding a number, every entry is the number (1).