My Assistant
![]() ![]() |
|
|
Aug 15 2007, 03:34 AM
Post
#1
|
|
|
UtterAccess Guru Posts: 559 |
In my qeury, I want to show the record which the check box is checked. May I knwo what is the value I should put in the criteria? Is it -1?
|
|
|
|
Aug 15 2007, 03:37 AM
Post
#2
|
|
|
UtterAccess VIP Posts: 7,990 From: Philippines |
Hi;
True HTH. |
|
|
|
Aug 15 2007, 03:41 AM
Post
#3
|
|
|
UtterAccess Guru Posts: 559 |
But how come it cannot show me the result?
|
|
|
|
Aug 15 2007, 03:54 AM
Post
#4
|
|
|
UtterAccess VIP Posts: 3,881 From: New Zealand |
Emily,
If you mean that you have a record with a Yes/No checkbox field, and you have checked the checkbox. Yes? And then you have a query, where you have the criteria -1 in that field, which is correct. But the query does no return the selected record. Is that the situation? Here's one possibility... Is the form still open, with the record you have checked the checkbox is still the current record? You may need to force the save of the record. If you check the checkbox, the query will not detect this until the record is saved. So either the form has to be clodes, or move to another record on the form, or use code to explicitly save the record. |
|
|
|
Aug 15 2007, 04:25 AM
Post
#5
|
|
|
UtterAccess VIP Posts: 7,990 From: Philippines |
Are there any other records that have a check box checked or is it the current record on the form in which you place the criterion for your query ?
|
|
|
|
Aug 15 2007, 07:13 PM
Post
#6
|
|
|
UtterAccess Guru Posts: 559 |
Yaya..I have another field which is also a check box...
|
|
|
|
Aug 15 2007, 07:19 PM
Post
#7
|
|
|
UtterAccess Guru Posts: 559 |
Hi Steve,
You are right...You understand my post clearly? But how am I suppose to save it explicitly? Is it using this statement? If Me.Dirty Then Me.Dirty = False? |
|
|
|
Aug 15 2007, 07:50 PM
Post
#8
|
|
|
UtterAccess VIP Posts: 3,881 From: New Zealand |
QUOTE But how am I suppose to save it explicitly? Yes, Emily, that will do it.
Is it using this statement? If Me.Dirty Then Me.Dirty = False? |
|
|
|
Aug 15 2007, 08:06 PM
Post
#9
|
|
|
UtterAccess Guru Posts: 559 |
I put the line under check box on click event...but still cannot response...
|
|
|
|
Aug 15 2007, 08:25 PM
Post
#10
|
|
|
UtterAccess VIP Posts: 3,881 From: New Zealand |
Emily,
Not the Click event. You willl need it on the After Update event of the checkbox. And probably can be simplified... just put: Me.Dirty = False |
|
|
|
Aug 15 2007, 09:02 PM
Post
#11
|
|
|
UtterAccess Guru Posts: 559 |
Hey Steve,
Thanks a lot for your help... Have a nice day... (IMG:http://www.utteraccess.com/forum/style_emoticons/default/cool.gif) |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 24th May 2013 - 04:53 AM |