I have a report in Access XP that is based on an SQL statement. The variable is declared as a public variable and assigned with a record ID number when the object is double-clicked. The report is then opened and the SQL statement is executed except it prompts me to input the record number rather than reading the public variable with the value assigned to it. The public variable "CLM" is declared as Long. Because SQL is read as string I have attempted to convert this to a CStr(CLM). I have feeling it has something to do with the quotes...but everything I find on the web is set as follows: "SELECT * FROM tblEmployees WHERE RecID = " & CStr(CLM"). I have copied this directly from the web pages into my SQL statement and it does not work! It looks to me like there are not enough quotes since there are not pairs. Any ideas?