checoturco
Registered User.
- Local time
- Yesterday, 16:28
- Joined
- Oct 17, 2005
- Messages
- 76
Hi list,
I have two combo boxes and if one is blank, i.e. if the combo don´t show any text, and the other shows any text,it runs one query,if not it runs another query.
My question is:
How do i know if the combo don´t show any text?
i already test this code:
if ((isnull(combo_name1.value)=true) and ((isnull(combo_name2.value)=true) or
if ((isnull(combo_name1.column(0))=true and ((isnull(combo_name2.column(0))=true))or
combo_name1.value="" and combo_name2.value=""
and this doesn´t work.
I read the access help about isnull and there explain that isnull is to test if a variable is null or not and i don´t know if we can use this function on the controls(combx,txbox,etc).
the first combo have a query that brings text and the other combo brings integer
tks in advance for all,
Checoturco
I have two combo boxes and if one is blank, i.e. if the combo don´t show any text, and the other shows any text,it runs one query,if not it runs another query.
My question is:
How do i know if the combo don´t show any text?
i already test this code:
if ((isnull(combo_name1.value)=true) and ((isnull(combo_name2.value)=true) or
if ((isnull(combo_name1.column(0))=true and ((isnull(combo_name2.column(0))=true))or
combo_name1.value="" and combo_name2.value=""
and this doesn´t work.
I read the access help about isnull and there explain that isnull is to test if a variable is null or not and i don´t know if we can use this function on the controls(combx,txbox,etc).
the first combo have a query that brings text and the other combo brings integer
tks in advance for all,
Checoturco