I am not sure what would be the "name" of a record? Do you mean the value of
a primary key for that record?
Assuming so, you could use a step such as this (watch for word wrap in
newsreader), assuming that your primary key field is a text field:
macMacroName
Condition: DCount("*", "table/query name", "[PrimaryKeyField]='" &
InputBox("Enter the primary key value:") & "'") > 0
Action: StopMacro
If the primary key field is a different format, wrap the InputBox portion
inside a function that will convert the text string that the InputBox
returns into the correct format. For example, assuming that your primary key
field is formatted as Long Integer:
macMacroName
Condition: DCount("*", "table/query name", "[PrimaryKeyField]='" &
CLng(InputBox("Enter the primary key value:")) & "'") > 0
Action: StopMacro