Function GetNewID(TableName As String, FieldName As String, Digit As Integer, _
Optional Prefixal As String, Optional DateFormat As String) As String
On Error GoTo Err_GetNewID
Dim strDate As String
Dim strLastID As String
Dim strSN As String
Dim strwhere As String