Silver_surfer
New member
- Local time
- Tomorrow, 02:30
- Joined
- Jan 29, 2020
- Messages
- 14
Hi guys,
I'm new to Access, and is now in the process of editing Northwind templates to suit up my needs
However, right now I'm stuck at making my own version of increment number
Nothing too fancy actually, I just need the number to restart at the start of December
But all I got is null. Any ideas? And sorry for my english
I'm new to Access, and is now in the process of editing Northwind templates to suit up my needs
However, right now I'm stuck at making my own version of increment number
Nothing too fancy actually, I just need the number to restart at the start of December
Code:
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.NewRecord Then
Me.[NoP3C] = DMax("[NoP3C]", "Purchase Orders", "[Expected Date]> #" & "30 / 11 / " & Year(Now) & "#") + 1
End If
End Sub
But all I got is null. Any ideas? And sorry for my english
