I would like to add a a condition to this,
While the user is creating a new record, there is a field on the form called "ServiceType" if they select 'Legal' I would like to append a "L" at the end of the FileNo, else
leave everything the same as below
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.NewRecord Then
Me.FileNo = Year(Date) & "1" & Format(Me.InvoiceID, "00000")
End If
End Sub
E.g.
Open in new window