Hi Guy,
I've did lot of searching and i still not able to find out what's the issue.
Code:
Private Sub Form_Open(Cancel As Integer)
Dim LValue As String
LValue = Format(Date, "YYMM")
MsgBox (LValue)
'Me.txtscar = Nz(DMax(" SCAR ", "F1NCtbl", SCAR = LValue), 0) + 1
Me.txtsequence = Format(Nz(DMax("Sequence", "F1NCtbl", "YYMM = '" & LValue & "'"), 0) + 1, "00")
Me.txtscar = "ANC" & LValue & Me.txtsequence
'Me.txtsequence = Nz(DMax("Sequence", "F1NCtbl", "YYMM = '" & LValue & "'"), 0) + 1
Me.Dirty = False
End Sub