If Int(Me.YourField) = Me.YourField Then
MsgBox("It's an integer.")
Else
MsgBox("Not an integer.")
End If
or:
If InStr(1, CStr(Me.YourField), ".") = 0 Then
MsgBox("It's an integer.")
Else
MsgBox("Not an integer.")
End If
if it wouldnt be a hassle could you please explain briefly how the second one works. It works fine so thanks for that but i want to understand how it works aswell. Thanks.