Can anyone tell me what is wrong with this Function.
Function FindOpWells()
Dim SQL As String
SQL = "SELECT * FROM tblOperations"
DoCmd.RunSQL SQL
End Function
When I try and run it I am told "An Sql Statements requires an arguement consisting of an SQL statement. My original Query was more complicated and I shortened it to try and see what I was doing incorrectly.
thanks
Peter



