qweeqweg
Member
- Local time
- Today, 11:58
- Joined
- Dec 12, 2019
- Messages
- 33
Hi. I decided to try and make a demo as well. I hope it's close enough to what you are doing. If not, please post your demo when it's ready.
Okay, in the attached file, first click on the button labeled "Query1." You should see that there are three records in the database (IDs 1, 2, and 3). Now, click on the button labeled "Query2." You should be prompted to enter an ID. Enter any ID between 1 and 3. The report should show up in the subform. Do it again with a different ID value, but still valid (1-3), just to verify the subform changes.
Then, click Query2 one more time, but this time enter an invalid ID value. You should now see the error message and the subform sends you back to Query1.
Hope that helps...
Thanks DBguy
I've reviewed your example and it is way different than the direction I took. Your query2 button fires off a report based on a query requiring a parameter value. My button fires off a form based query. I would think that mine should work.. but its not. Have a look at my attached DEMO. Where have I gone wrong? Open the DASHBOARD form and click MOVE INVENTORY. oh.. FIRST, open DASHBOARD in design view and select the unbound subform control (sfctl) and set the visible property back to NO. Then proceed. I forgot to return that value to where I want it before I zipped the db.
You can grab a valid serial number from the inventory table.
Note that there are 2 versions of each form. One is a standalone for use thru the switchboard, and the other is the subform version im using with the dashboard. The only differences are cosmetic. All these forms work fine if you open them directly. And they all work if you open them thru the Switchboard. The problem lays in how Im trying to open them thru the DASHBOARD form using SourceObject. Why is this all like this? Because I like the DASHBOARD method, and Im simply trying to modify the interface from the prior Switchboard interface.
Attachments
Last edited: