I am still having (Auto) show up when I enter a new record. Would my error be somewhere else? Here is my code.
Private Sub Form_BeforeInsert(Cancel As Integer)
If Me.SAMP_Num = "(Auto)" Then
Dim PrevValue As Variant
PrevValue = ELookUp("SAMP_NUM", "[Geochemistry - Samples]", , "SAMP_NUM Desc")
If Not IsNull(PrevValue) Then
'Increment the value from last time
Me.SAMP_Num = Succ(PrevValue)
Else
'No previous records were found so start from the bottom
Me.SAMP_Num = "SRC000000"
End If
End If
End Sub