Your question is confusing, at least to me! Records don't really 'exist' in Forms, they're only displayed in them! They actually exist in Tables. To check to see if a Record exist, you could use DCount() with a Criteria (like a Where Clause) consisting of a Field that is unique to a given Record.
An example would be something like this, if the unique Field was defined as Text:
Code:
If DCount("*", "TableName", "[EmployeeID] = '" & Me.EmpID & "'") > 0 Then
'a Matching Record exists...do something
Else
'a Matching Record does not exist...do something else
End If
If defined as a Number:
Code:
If DCount("*", "TableName", "[EmployeeID] = " & Me.EmpID) > 0 Then
'a Matching Record exists...do something
Else
'a Matching Record does not exist...do something else
End If
Exactly where you'd place the code depends on what, exactly, you want to do if a Record does or doesn't exist.
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007