I want to be able to have the user choose a location to view. A report will print with just that location and the total of all locations (side-by-side). But also be able to choose all locations also.
I woiuld suggest a 'layered' approach. Let 'ye olde' XTab just do it's thing. Have a form with the necessary coutrols to accomplish the selection (Combo boxes, Multi-select ...) and a command button for 'go'. The button uses the selections to build a query based on the XTab and displays it in your desired format.
The 'layer' refers to having a SECOND query whih uses the XTab as its SOURCE. You can display (or not) any of hte info in hte XTab. You just need to "write" the query (perhaps in code?) based on the selections. It is really not all that hard. Even individuals with limited training in queries and vb(A) can usually accomplish it.
Generate the XTab per normal. Gnerate a "Select" query based on the XTab, showing a 'typical" display.
Switch the "Select:" query to "SQL" view (with the query having the focus, look at the menu bar(s) on the right you will see a "comboBox". To the right of the combo down arrow is a picture - Depending on the current view, it is a Drafting Triange, a data sheet (or "SQL". Select the SQL from the combo. A "TextBox" shows the query statement. Copy it off to somewhere and study it. You only need to change the field names depending on the "Selections".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.