Thread
:
checkbox as query criteria
View Single Post
#
3
May 1st, 2010, 03:31 PM posted to microsoft.public.access
remigio
external usenet poster
Posts: 6
checkbox as query criteria
On 1 Mag, 15:04, Tom van Stiphout wrote:
On Sat, 1 May 2010 05:55:14 -0700 (PDT), remigio
wrote:
Create two queries. Then switch between them based on your needs. For
example in the myCheckBox_AfterUpdate event you could write:
if me.myCheckbox.value = True then
* Me.myCombobox.RowSource = "query2"
else
* Me.myCombobox.RowSource = "query1"
end if
(of course you replace myObjectNames with yours)
-Tom.
Microsoft Access MVP
Hi,
in an Access form i've put a combo box that has a query as data
source. On this form I'd like to add a check box that, when it is
selected, adds the "is not null" criteria on a query field.
There is a simple way to do this?
Thank you very much for help.
Thank you very much.
--
Remigio
www.sacraspina.it
www.amicitosondoro.it
www.icmonteodorisio.it
www.parrocchiacupello.it
www.cralnuovainiziativa.it
www.associazionehistonium.it
remigio
View Public Profile
View message headers
Find all posts by remigio
Find all threads started by remigio