First, replace
stLinkCriteria = "[LastName]=" & Me![LastName]
with
stLinkCriteria = "[LastName] = '" & Me![LastName] & "'"
Last name is text, therefore you should surround it with a delimiter... in this case, an apostrophe. It if were a date, it'd be the pound sign (#). And if a number, then you would have it as you wrote it... with nothing.
The parameter coming up sounds like your underlying table or query is has the field NAME in there, but you're passing LastName instead... so it's asking for the value of LastName. Note that NAME is a VBA reserved word. If your table or query does have NAME in a field, change it to something else.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|