R
RON
Hello everyone, I am aware that Access has built in filtering but I want to
build my own filter into access using a popup dialog box.
I have a bound form lets call it frmStudentFilter
this form just has entries from my student table like Name, Sex, Class,
etc...
What I want to do is put a button on the frmStudentFilter form that will
open up a popup dialog box that will essentially be a filter. An option
group with radio button selections for ALL and Gender and CLASS will be
there, next to the GENDER and CLASS Radio Buttons will be drop down, next
to Gender the drop down will be either Male or Female and the CLASS Dropdown
will be either freshman, senior.
For example when the Gender button is selected and Male is chosen in the
dropdown and the filter button is pressed, I want frmStudentFilter to pop up
again but only listing the Males.
I have this somewhat working but all on the same form, right now I have an
option group with All and Gender and the dfrop down next to Gender....but it
is on the frmStudentFilter form. Here is the CODE, and it is working fine.
Private Sub Frame6_AfterUpdate()
Select Case Frame6
Case 1
lblfilter.Caption = "Filter by All"
MsgBox "filter by all"
Me.FilterOn = False
Case 2
lblfilter.Caption = "Filter by Gender"
MsgBox "Filter by Gender"
End Select
End Sub
How do I do the same with but with a pop up form that then opens up the
frmStudentFilter form
build my own filter into access using a popup dialog box.
I have a bound form lets call it frmStudentFilter
this form just has entries from my student table like Name, Sex, Class,
etc...
What I want to do is put a button on the frmStudentFilter form that will
open up a popup dialog box that will essentially be a filter. An option
group with radio button selections for ALL and Gender and CLASS will be
there, next to the GENDER and CLASS Radio Buttons will be drop down, next
to Gender the drop down will be either Male or Female and the CLASS Dropdown
will be either freshman, senior.
For example when the Gender button is selected and Male is chosen in the
dropdown and the filter button is pressed, I want frmStudentFilter to pop up
again but only listing the Males.
I have this somewhat working but all on the same form, right now I have an
option group with All and Gender and the dfrop down next to Gender....but it
is on the frmStudentFilter form. Here is the CODE, and it is working fine.
Private Sub Frame6_AfterUpdate()
Select Case Frame6
Case 1
lblfilter.Caption = "Filter by All"
MsgBox "filter by all"
Me.FilterOn = False
Case 2
lblfilter.Caption = "Filter by Gender"
MsgBox "Filter by Gender"
End Select
End Sub
How do I do the same with but with a pop up form that then opens up the
frmStudentFilter form