Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[blue]Public Sub InsertID()
Dim YY As String, MM As String
Dim hldNow As Date, Pad As String
If Me.NewRecord Then
hldNow = Int(Now())
YY = Format(hldNow, "YY")
MM = Format(hldNow, "MM")
Pad = String(8 - Len(Me!AutoID), "0")
Me![purple][b]YourIDname[/b][/purple] = YY & "-" & MM & "-" & Pad & LTrim(Str(Me!AutoID))
End If
End Sub[/blue]
[blue] Call InsertID[/blue]