I have created a form in an Access 97 database which is acting as the initial interface to a report. From a switchboard, the user clicks on a command button which takes them to form, which is based on a query. The form has a bunch of committee names which can be chosen one at a time, or multiple options, by simply clicking a “button” beside the name that they desire. This button’s control source is a yes/no field in the table/query called “selected” which simply gets set to a “yes” if the button is selected for a corresponding committe name. When the committee(s) have been selected, the user clicks on an “OK” button on the form, which launches the report. Upon exiting the report, an update query runs to “de-select” the buttons which had been “selected” in the form. This way the next time it is used, it is clean and ready to go.
The problem I’m running into is that the report doesn’t seem to display the data the first time around if only one “committee name” is selected from the form. If multiple names are selected the report displays info, however it’s unpredictable what it shows. Sometimes it shows data matching both names which were selected, but more often than that, it just displays the data which matches the first name which was selected. Beyond that, if when the report is closed, and the response to the update query request message is “no” (not to run the update query), and the name is left selected, the next time the form is opened, assuming the choice you want is the one that was left selected from the previous time, the report displays exactly the information which it should.
I apologize for the complexity of this description, but if anyone was able to follow, I’d appreciate any advice…I’m at a loss to knowing how to fix this.