need CheckBox Samples

need CheckBox Samples

  
hi , i need one sample regarding checkbox.
for example i have some data in my database like fruits and vegetables.i have two checkboxes 1) vegetables 2) friits.
my requirement is if i selected if i selected  VEGETABLES checkbox, in the database only vegetables data should come. if i selected FRUITS  checkbox ,in the database only fruits data should come. i tried but not able to do it.
 can any bady help me how to do it and proceed. if any body have the  sample please attach it.


thanks & regards,
sattibabu vatti.
have you tried to refresh the query on the onchange event?
hi ,
initially i was struck. i just drag  and drop the checkbox. it  is asking the variable. what can i give.


regards,
sattibabu vatti.
you have to create a boolean variable, it is used to know if that checkbox is selected or not.