I need to be able to select certain names to be able to email their reports to a single end user. What I have done so far is add a y/n field in the names table, created a form that list all the names along with the y/n field (Named PrntRpt) and inserted a select switch to email the selected names with their records to the end user.
The program I have created is
Dim stDocName As String
Dim intLet As Integer
stDocName = "CPEReport"
intLet = -1
docmd.OpenReport stDocName, acPreview, , "PrntRpt = '" & Me.intLet & "'"
The problem I have is .inLet is not recognized by the computer and giving me a "Compile Error: Method or Data Member Not Found"
What am I doing Wrong?
Thank you for your help
Robert M