So I have this simple database with different stations and precipitation data. I am attempting to create a dynamic query 'on the fly', so to speak, that uses a combo box to select a particular month from a table. There is a command button on a form with attached code. The code is supposed to take the value selected from the combo box and build the query titled 'MyQuery'. Once 'MyQuery' is built the idea is to then open the query with the option to plot the values in Google Earth.
Now I have something similar to this that is a spotter database. It includes all of the weather spotter in our area along with lat, long, etc. With the option to plot the names and phone numbers in Google Earth.
I cannot seem to figure out where I am going wrong here. The debugger stops on DoCmd.OpenQuery ("MyQuery"). If anyone has any suggestions it would be greatly appreciated. I am attaching my simple database for reference (Access 2007). Thanks in advance.
Now I have something similar to this that is a spotter database. It includes all of the weather spotter in our area along with lat, long, etc. With the option to plot the names and phone numbers in Google Earth.
I cannot seem to figure out where I am going wrong here. The debugger stops on DoCmd.OpenQuery ("MyQuery"). If anyone has any suggestions it would be greatly appreciated. I am attaching my simple database for reference (Access 2007). Thanks in advance.
