Sari Posted May 16, 2005 Posted May 16, 2005 Hi, Don't know if this is the right place but I have a check box within a table. When there is a cross in the check box, I want to omit records within my script. I have tried to do this by constraining my found set but I don't seem to be able to get the syntax correct. Should I have the checkbox field formatted as number? What is the syntax for omitting the boxes that are checked? If this is in the wrong place, do tell me where I should put it (clean answers only please!) Many thanks
Søren Dyhr Posted May 16, 2005 Posted May 16, 2005 It's a matter of convenience, but if you make a valuelist with the number 1 as the only member, can you when entering the field to the layout redraw it so only the box is visible. When you turn to the script can your looping contain: If(checkbox) Omit end if But this isn't particular fast compared to the Jeff Almquist method, I here have made a template to demonstrate. http://accessvbsqladvisor.com/doc/04565 --sd Sari2.zip
Sari Posted May 16, 2005 Author Posted May 16, 2005 I couldn't get this to work but in the end constrained my found set by omitting records where the checkbox had a character in it. I tried to look up your link but had difficulty with it. Many thanks anyway.
Søren Dyhr Posted May 17, 2005 Posted May 17, 2005 Ah! so you got a found set in the first place, and then wish to omit the ones checked just after first seach. Then is the script Enter Find Mode Constrain Found Set[Restore] ...where your request in this request is set to Omit records and in the box write the value 1, if thats what the value the checkbox contains. --sd Sari3.zip
Recommended Posts
This topic is 7133 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now