How can this be done? I have a function that I took from a class module and put in a standard module and I keep getting the "Invalid use of Me keyword" error. The help screens says to "replace the Me keyword with the specifc object or form name to preserve the original reference."
Everything I try gives me a new error.
Invalid outside procedure
Object required
Any suggestions?
Code:
stLinkCriteria = "[SiteNameID]=" & "'" & [b]Me[/b]![SiteNameID] & "'
stLinkCriteria = stLinkCriteria & " And [AreaCode]='" & [b]Me[/b]![AreaCode] & "'"
Everything I try gives me a new error.
Invalid outside procedure
Object required
Any suggestions?