I'm making a database to show which types of devices are installed at intersections and I want the form to print out details for only one intersection and not our entire County.
I'm getting an error message of "Syntax error (missing operator) in query expression."
I have a report that has an underlying query field with the name of "Intersecti on Name". I also have a field on my form with the term "Intersecti on Name".
Here is my VBA:
DoCmd.OpenRepor t stDocName, acPreview, , "[Intersection Name]=" & [Intersection Name]
If I understand correctly, "[Intersection Name]=" refers to my report field and the portion [Intersection Name] at the end refers to the field in my form and this VBA tries to match the form string for intersection name to the report string for intersection name.
I'm getting an error message of "Syntax error (missing operator) in query expression."
I have a report that has an underlying query field with the name of "Intersecti on Name". I also have a field on my form with the term "Intersecti on Name".
Here is my VBA:
DoCmd.OpenRepor t stDocName, acPreview, , "[Intersection Name]=" & [Intersection Name]
If I understand correctly, "[Intersection Name]=" refers to my report field and the portion [Intersection Name] at the end refers to the field in my form and this VBA tries to match the form string for intersection name to the report string for intersection name.
Comment