Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 97 OptionBox

Status
Not open for further replies.

ekennedy

Programmer
Apr 16, 2002
3
US
I want to set one of my options to select all the records in which the specific field is not blank (IsNotNull)and the other option selects all the records whether the field is blank or not.
 
Let's say your option has two check boxes. One has a value of 1 and the other a value of 2. You could use a select case statement...

Select Case MyOptionGroup

Case = 1
Me.Filter = "MyField Is Null"
Me.FilterOn = True
Case = 2
Me.FilterOn = False

End Select

This is one way. I am MyOptionGroup is the name of your option group control.

... prodevmg@yahoo.com
ProDev, MS Access Applications B-)
May God bless you in the year 2002.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top