I think whats happening here is that you only have a single control on the report, and are then attempting to bind the above [blue]=[City] & ", " & [State] & " " & [Zip][/blue] expression as the control source to that control.
For the above to work, you need to create separate bound controls for each on the form; name the controls City, State and Zip and bind them to their respective fields. Set the visible property of each of these controls to False, as they are 'working' controls, and are not for display purposes.
Then create a fourth control, and name it CityStateZip. Set its ControlSource property to the blue expression above.
The reason you get this problem, is that the expression refers to controls on the report and not to fields in the underlying recordsource. So when you dont have the three explicit controls on the report, the expression cannot be evaluated; hense the error.
The other option you have, is to use a query or sql as the reports recordsource, and add the expression to the select part, so that it becomes a field in its own right inasfar as the report is concerned; eg.
SELECT *,
[City] & ", " & [State] & " " & [Zip] AS CityStateZip
FROM tblYourTable
With this method, the distinct City, State and Zip controls do not need to be included separately and hidden on the report.
Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)