G
Guest
Hi All
I use this to show incremental numbers for record in a subform
Private Sub Form_BeforeInsert(Cancel As Integer)
Me.PayItemID = Nz(DMax("[PayItemID]", "tblPaymentItems", "[PayID] = " &
Me.PayID)) + 1
End Sub
So you get
Main record ID = 123, 124, 125, etc
Sub form ID = 1, 2, 3, 4 (not indexed)
Concencated text box = 123 / 1, 123 / 2, 123 / 3, etc
Is it possible to increment Letters (A to Z) instead of number so you would
have
Sub form ID = A, B, C, D
Note there are never more than 15 subform records.
I just think it would look better and be easier to understand.
I use this to show incremental numbers for record in a subform
Private Sub Form_BeforeInsert(Cancel As Integer)
Me.PayItemID = Nz(DMax("[PayItemID]", "tblPaymentItems", "[PayID] = " &
Me.PayID)) + 1
End Sub
So you get
Main record ID = 123, 124, 125, etc
Sub form ID = 1, 2, 3, 4 (not indexed)
Concencated text box = 123 / 1, 123 / 2, 123 / 3, etc
Is it possible to increment Letters (A to Z) instead of number so you would
have
Sub form ID = A, B, C, D
Note there are never more than 15 subform records.
I just think it would look better and be easier to understand.