Guest_imported
New member
- Jan 1, 1970
- 0
I'm not really sure where I went wrong, but, here's my problem. I'm trying to set up a report using the results returned from the COUNT function. I placed the following code in the OnOpen code module:
Me.RecordSource = "SELECT COUNT([City or County]) AS [City] FROM [Accident Data]" WHERE [City or County]='City'
mCity = [City]
I keep getting an error message:
Main Switchboard can't find the field 'City' referred to in your expression.
What is the correct way to get the results that I'm looking for.
Me.RecordSource = "SELECT COUNT([City or County]) AS [City] FROM [Accident Data]" WHERE [City or County]='City'
mCity = [City]
I keep getting an error message:
Main Switchboard can't find the field 'City' referred to in your expression.
What is the correct way to get the results that I'm looking for.