Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Filter a split form using a combobox and option buttons

$
0
0
Hi everyone,

I am trying to open a filtered split form based on user inputed specifications in one form to open up the filtered split form in a different form. First I need to specify which form (which is one of three forms), then I need to specify the selected week (which is a column in the table feeding the second form). Once filtered, I should see about 20 different rows with the same week after the filter.

Right now my selection form looks like the first attachment titled SpecifyFormScreenshot.
Attachment 15655

This first form asks for the week (in a dropdown combobox), and the shift (in a group of three option buttons). After the user specifies how they would like to filter the form, I would like for them to be able to click the button that says "Open Table". Right now, that button has a Build Event for "On Click" that looks like the second attachment titled OpenTableScreenshot.
Attachment 15654

The Option Group is titled Frame 17. Shift 1 = 1, Shift 2 = 2, and Shift 3 = 3. The input for the week dropdown combobox is titled "WeekInput". I am just worrying about Shift 1 right now, once I figure that out I can use that format to apply it to Shift 2 and Shift 3.

I am having trouble specifying the Where Condition so that it applies the combobox's current value. On the form titled Shift 1, the week field is titled "WeekInput" and that should just be set to the value of the combobox.

With the current value, when I click the Open Table button, I get a pop up box that says "Enter Parameter Value" for "WeekInput".

Hopefully all that makes sense, does anyone know how to fix this and am I going about it the right way?

Attached Images
File Type: png OpenTableScreenShot.png (21.3 KB)
File Type: png SpecifyFormScreenshot.png (8.4 KB)

Viewing all articles
Browse latest Browse all 13329

Trending Articles