The only difference for data type is the syntax.
Text field criteria must be enclosed in single or double quotes.
Date field criteria must be enclosed in #
Numeric field criteria uses no delimiters.
In any case, your syntax included what you want to find but does not include
where you want to find it. The correct syntax is:
.FindFirst "[FieldNameToSearch] = " & Me.ID
If ID were text
.FindFirst "[FieldNameToSearch] = '" & Me.ID & "'"
If ID were a date
.FindFirst "[FieldNameToSearch] = #" & Me.ID & "#"
Ed Bloom said:
How do I use the .FindFirst method when the field I need to search is a Long
Integer?
.FindFirst Me.ID
ID is Long Integer
Thank you in advance.