First a comment on mmcdonal and your code. If the name that you're searching is text, i.e. type string, then write
DoCmd.OpenForm "Invent_Frm", , , "[NAME] = '" & Me.Name & "'"
Since mmcdonal used SPECIFICALLY [PrimaryKey], which are usually numbers, his is correct assuming [PrimaryKey] is a number. However, you specified NAME which is text, which needs the single-quote delimiters.
As for the "Enter Parameter Value", check to make sure your form is not based on a query that asks for a parameter. In your query's criteria cells, check to make sure you literally don't have
[Enter Parameter Value]
in one of those cells. If you do, that's where that's coming from.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|