Hi Douglas,
How do I program a requery? There is actually a refresh button that I can
create from the tool bar wizard. But I think it's a hazzle that I have to
keep clicking on the refresh button for every little changes. How come
when
I used the code to select clear all it doesn't refresh by itself instead I
have to use a refresh button to do that.
So the bottom line is I want the system to refresh the changes after I
click
on the clear all or select all button that I created instead of clicking
on
the refresh button contantly. Thank you so much.
Private Sub ClearAll_Click()
CurrentDb.Execute "Update [Productlist] Set [Productlist].Selection = 0;",
dbFailOnError
End Sub
Douglas J. Steele said:
Try issuing a Requery on your form after you run the SQL.
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
"E-mail report using Lotus Notes rather t"
message Hi Douglas,
It's really driving me crazy. In my continues form when I only select
the
first three items check box the last one that I checked will not show
up
when
I click on the query button why is that and vise vera when I uncheck it
the
last one I uncheck shows up as checked on my query. This is driving me
nuts.
Please Please help!!! Thanks. I am using access 2003.
:
You're missing the comma between the SQL statement and the
dbFailOnError
parameter. (Presumably you've got that on one line in your program)
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
"E-mail report using Lotus Notes rather t"
message Hi Fredg or anyone,
Can you tell me what I am doing wrong with this code. I have a
continuous
form and I am trying to create a button to clear all checked boxes.
Private Sub Command8_Click()
CurrentDb.Execute "Update [Product list] Set [Product
list].Selection =
0;"
dbFailOnError
End Sub
:
Thanks fredg the code worked
:
On Mon, 10 Jan 2005 08:05:05 -0800, Antonio wrote:
Hello Group,
I'm trying to create a button in a continues form that can
uncheck
all
checkbox when I click on it. The following code uncheck only
the
checkbox
that I'm on. Is there something that I',m over looking?
Private Sub cmdClearCheckBoxes_Click()
Dim ctl As Control
Dim frm As Form
Set frm = Me
For Each ctl In frm.Controls
With ctl
If .ControlType = acCheckBox Then
If ctl.Value = True Then
ctl.Value = False
End If
End If
End With
Next ctl
End Sub
Thanks in advance for your assisting
Is the check box bound to a field in the table?
Private Sub cmdClearCheckBoxes_Click()
CurrentDb.Execute "Update YourTable Set YourTable.CheckBoxName =
0;",
dbFailOnError
End Sub