Command Button Not Executing

H

HankL

I setup a update query with a command button. However it is not executing.
Update query has the following information:
Field: PrintME
Table: Restaurant
Update To: False
Criteria: True

I am attempting to create a button that will undo check marks in a checkbox
named PrintME


Properties of the Visual Basic code that was setup by the Query Wizard as
shown as follows:

Private Sub Uncheckbox_Click()
On Error GoTo Err_Uncheckbox_Click

Dim stDocName As String

stDocName = "Uncheckbox"
DoCmd.OpenQuery stDocName, acNormal, acEdit

Exit_Uncheckbox_Click:
Exit Sub

Err_Uncheckbox_Click:
MsgBox Err.Description
Resume Exit_Uncheckbox_Click

End Sub
 
G

Gina Whipp

HankL,

By not working, I assume you mean your check boxes remain the True. Please
post the SQL of your query. To do so, go to Design View of your query and
select SQL from the drop down over in the far left corner.

When you post back, also post Access version and whether or not you get any
messages along with what the messages say.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 
H

HankL

UPDATE Restaurant SET Restaurant.PrintME = False
WHERE (((Restaurant.PrintME)=True Or (Restaurant.PrintME)=Yes));

Access 2003
No messages

HankL

Gina Whipp said:
HankL,

By not working, I assume you mean your check boxes remain the True.
Please post the SQL of your query. To do so, go to Design View of your
query and select SQL from the drop down over in the far left corner.

When you post back, also post Access version and whether or not you get
any messages along with what the messages say.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 
H

HankL

Gina,

I am sorry but I do not quite understand your question of:

When you view it, without running it, do you see
any results?

I am not quite certain how I can see any results unless I attempt to run the
command button.
Please excuse my lack of knowledge.

Do you want me to do anything specific. I have attempted several times to
delete and reinstall the updated query as well as the command button

HankL


I am not
 
G

Gina Whipp

HankL,

No worries, here's how you view it without running it...

Open your query in Design View and click the datasheet *View* button located
in the upper left hand corner under File on the Menu Bar. If the is a True
or Yes in that view then run it and see if it turns to False. If there is
only blanks in there then it has nothing to do. Either way, post back with
what you see.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 
H

HankL

Here what I did to check it;
I put some checkmarks on 3-4 records in Form view
I opened the updated query in design view
Then I opened View dropdown and selected Datasheet View
I see the column PrintME and it shows the checkboxs with 3 checks
I selected Uncheckbox button on my Form view and the checks did not
disappear.
I also opened up the table and saw the checkmarks in the PrintMe column of
the table.

It is working but in a weird way.
I am using a continuous form and I scroll down and select certain records
with a checkmark in the PrintMe.
Then I select Uncheckbox button in the first record. Nothing happens
If I go down to the second or fifth record and select Uncheckbox then the
checkmarks go away.

It is not always consistent. I have to play around from various records to
make it work.
As an example, I selected 4 records. I clicked the Uncheckbox and one or
two checkmarks disappeared..
Then I selected Uncheckbox button from another record and the other
disappeared.
I thought it didn't matter how many were checked off, once I clicked on the
Uncheckbox button all of the checkmarks would disappear
 
H

HankL

Gina,

The button was on the form itself. I went into Design View and in the VIEW
dropdown, I selected Form Header/Footer and moved the command button into
the header. Just as a point of information I have another button on the
form itself and that works just fine.
I am using continuous forms as the Default View on the Format in the
properties.

I do not believe I am using a form/subform. When I originally setup this
database, I have the table and form views. I just have the one form view
and have no integrated it with any other databases.

HankL
 
G

Gina Whipp

HankL,

When you moved the button, did you move the code? The code does not move
with the button. Check that the button in the Header section of your form
actually has the code. Go to Properties of the button and look for the
On_Click line and make sure it says [EVENT PROCEDURE]. Then press the
elipse button [...] and see if the code is there. If not, move your code
there.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 
H

HankL

Hi Gina,

Below is what I found in the event procedure:

Private Sub Uncheckbox_Click()
On Error GoTo Err_Uncheckbox_Click

Dim stDocName As String

stDocName = "Uncheckbox"
DoCmd.OpenQuery stDocName, acNormal, acEdit

Exit_Uncheckbox_Click:
Exit Sub

Err_Uncheckbox_Click:
MsgBox Err.Description
Resume Exit_Uncheckbox_Click

End Sub
I really do not understand this terminology and would appreciate your
assistance

Thank you and have a Happy Thanksgiving

HankL
Gina Whipp said:
HankL,

When you moved the button, did you move the code? The code does not move
with the button. Check that the button in the Header section of your form
actually has the code. Go to Properties of the button and look for the
On_Click line and make sure it says [EVENT PROCEDURE]. Then press the
elipse button [...] and see if the code is there. If not, move your code
there.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

HankL said:
Gina,

The button was on the form itself. I went into Design View and in the
VIEW dropdown, I selected Form Header/Footer and moved the command button
into the header. Just as a point of information I have another button on
the form itself and that works just fine.
I am using continuous forms as the Default View on the Format in the
properties.

I do not believe I am using a form/subform. When I originally setup this
database, I have the table and form views. I just have the one form view
and have no integrated it with any other databases.

HankL
 
G

Gina Whipp

HankL,

Before we go into terminology we need to figure out why your query won't run
and the fact you get no messages. Is the database in a state where you can
send it to me? By all logic, what you have should work, so there must be
something stopping it.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

HankL said:
Hi Gina,

Below is what I found in the event procedure:

Private Sub Uncheckbox_Click()
On Error GoTo Err_Uncheckbox_Click

Dim stDocName As String

stDocName = "Uncheckbox"
DoCmd.OpenQuery stDocName, acNormal, acEdit

Exit_Uncheckbox_Click:
Exit Sub

Err_Uncheckbox_Click:
MsgBox Err.Description
Resume Exit_Uncheckbox_Click

End Sub
I really do not understand this terminology and would appreciate your
assistance

Thank you and have a Happy Thanksgiving

HankL
Gina Whipp said:
HankL,

When you moved the button, did you move the code? The code does not move
with the button. Check that the button in the Header section of your
form actually has the code. Go to Properties of the button and look for
the On_Click line and make sure it says [EVENT PROCEDURE]. Then press
the elipse button [...] and see if the code is there. If not, move your
code there.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

HankL said:
Gina,

The button was on the form itself. I went into Design View and in the
VIEW dropdown, I selected Form Header/Footer and moved the command
button into the header. Just as a point of information I have another
button on the form itself and that works just fine.
I am using continuous forms as the Default View on the Format in the
properties.

I do not believe I am using a form/subform. When I originally setup
this database, I have the table and form views. I just have the one
form view and have no integrated it with any other databases.

HankL

HankL,

Where is the button? It should be in the form header or footer. OR is
this a form/subform?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

Here what I did to check it;
I put some checkmarks on 3-4 records in Form view
I opened the updated query in design view
Then I opened View dropdown and selected Datasheet View
I see the column PrintME and it shows the checkboxs with 3 checks
I selected Uncheckbox button on my Form view and the checks did not
disappear.
I also opened up the table and saw the checkmarks in the PrintMe
column of the table.

It is working but in a weird way.
I am using a continuous form and I scroll down and select certain
records with a checkmark in the PrintMe.
Then I select Uncheckbox button in the first record. Nothing happens
If I go down to the second or fifth record and select Uncheckbox then
the checkmarks go away.

It is not always consistent. I have to play around from various
records to make it work.
As an example, I selected 4 records. I clicked the Uncheckbox and one
or two checkmarks disappeared..
Then I selected Uncheckbox button from another record and the other
disappeared.
I thought it didn't matter how many were checked off, once I clicked
on the Uncheckbox button all of the checkmarks would disappear

HankL,

No worries, here's how you view it without running it...

Open your query in Design View and click the datasheet *View* button
located in the upper left hand corner under File on the Menu Bar. If
the is a True or Yes in that view then run it and see if it turns to
False. If there is only blanks in there then it has nothing to do.
Either way, post back with what you see.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

Gina,

I am sorry but I do not quite understand your question of:

When you view it, without running it, do you see
any results?

I am not quite certain how I can see any results unless I attempt to
run the command button.
Please excuse my lack of knowledge.

Do you want me to do anything specific. I have attempted several
times to delete and reinstall the updated query as well as the
command button

HankL


I am not
HankL,

Well nothing wrong there. When you view it, without running it, do
you see any results?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

UPDATE Restaurant SET Restaurant.PrintME = False
WHERE (((Restaurant.PrintME)=True Or (Restaurant.PrintME)=Yes));

Access 2003
No messages

HankL

HankL,

By not working, I assume you mean your check boxes remain the
True. Please post the SQL of your query. To do so, go to Design
View of your query and select SQL from the drop down over in the
far left corner.

When you post back, also post Access version and whether or not
you get any messages along with what the messages say.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" - Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

I setup a update query with a command button. However it is not
executing.
Update query has the following information:
Field: PrintME
Table: Restaurant
Update To: False
Criteria: True

I am attempting to create a button that will undo check marks in
a checkbox named PrintME


Properties of the Visual Basic code that was setup by the Query
Wizard as shown as follows:

Private Sub Uncheckbox_Click()
On Error GoTo Err_Uncheckbox_Click

Dim stDocName As String

stDocName = "Uncheckbox"
DoCmd.OpenQuery stDocName, acNormal, acEdit

Exit_Uncheckbox_Click:
Exit Sub

Err_Uncheckbox_Click:
MsgBox Err.Description
Resume Exit_Uncheckbox_Click

End Sub
 
H

HankL

Gina,

Ok before we go any further, I was messing around with the Tools/Security
for the Restaurants.mdb and now I cannot get into it.
I get the following message:

Do not have necessary permission to use Restaurants.mdb
When I opened Tools/Security
User & Group Permissions is gray out
User level security Wizard is gray out
Any suggestions as to how I can open this data base again with permissions?
There is no passwords on any of my databases because I use this at home.

I will be happy to sent the database base to you. If you would just give me
instructions how to copy it so you can use it.

HankL
Gina Whipp said:
HankL,

Before we go into terminology we need to figure out why your query won't
run and the fact you get no messages. Is the database in a state where
you can send it to me? By all logic, what you have should work, so there
must be something stopping it.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

HankL said:
Hi Gina,

Below is what I found in the event procedure:

Private Sub Uncheckbox_Click()
On Error GoTo Err_Uncheckbox_Click

Dim stDocName As String

stDocName = "Uncheckbox"
DoCmd.OpenQuery stDocName, acNormal, acEdit

Exit_Uncheckbox_Click:
Exit Sub

Err_Uncheckbox_Click:
MsgBox Err.Description
Resume Exit_Uncheckbox_Click

End Sub
I really do not understand this terminology and would appreciate your
assistance

Thank you and have a Happy Thanksgiving

HankL
Gina Whipp said:
HankL,

When you moved the button, did you move the code? The code does not
move with the button. Check that the button in the Header section of
your form actually has the code. Go to Properties of the button and
look for the On_Click line and make sure it says [EVENT PROCEDURE].
Then press the elipse button [...] and see if the code is there. If
not, move your code there.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

Gina,

The button was on the form itself. I went into Design View and in the
VIEW dropdown, I selected Form Header/Footer and moved the command
button into the header. Just as a point of information I have another
button on the form itself and that works just fine.
I am using continuous forms as the Default View on the Format in the
properties.

I do not believe I am using a form/subform. When I originally setup
this database, I have the table and form views. I just have the one
form view and have no integrated it with any other databases.

HankL

HankL,

Where is the button? It should be in the form header or footer. OR
is this a form/subform?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

Here what I did to check it;
I put some checkmarks on 3-4 records in Form view
I opened the updated query in design view
Then I opened View dropdown and selected Datasheet View
I see the column PrintME and it shows the checkboxs with 3 checks
I selected Uncheckbox button on my Form view and the checks did not
disappear.
I also opened up the table and saw the checkmarks in the PrintMe
column of the table.

It is working but in a weird way.
I am using a continuous form and I scroll down and select certain
records with a checkmark in the PrintMe.
Then I select Uncheckbox button in the first record. Nothing happens
If I go down to the second or fifth record and select Uncheckbox then
the checkmarks go away.

It is not always consistent. I have to play around from various
records to make it work.
As an example, I selected 4 records. I clicked the Uncheckbox and
one or two checkmarks disappeared..
Then I selected Uncheckbox button from another record and the other
disappeared.
I thought it didn't matter how many were checked off, once I clicked
on the Uncheckbox button all of the checkmarks would disappear

HankL,

No worries, here's how you view it without running it...

Open your query in Design View and click the datasheet *View* button
located in the upper left hand corner under File on the Menu Bar.
If the is a True or Yes in that view then run it and see if it turns
to False. If there is only blanks in there then it has nothing to
do. Either way, post back with what you see.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

Gina,

I am sorry but I do not quite understand your question of:

When you view it, without running it, do you see
any results?

I am not quite certain how I can see any results unless I attempt
to run the command button.
Please excuse my lack of knowledge.

Do you want me to do anything specific. I have attempted several
times to delete and reinstall the updated query as well as the
command button

HankL


I am not
HankL,

Well nothing wrong there. When you view it, without running it,
do you see any results?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

UPDATE Restaurant SET Restaurant.PrintME = False
WHERE (((Restaurant.PrintME)=True Or (Restaurant.PrintME)=Yes));

Access 2003
No messages

HankL

HankL,

By not working, I assume you mean your check boxes remain the
True. Please post the SQL of your query. To do so, go to Design
View of your query and select SQL from the drop down over in the
far left corner.

When you post back, also post Access version and whether or not
you get any messages along with what the messages say.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" - Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

I setup a update query with a command button. However it is not
executing.
Update query has the following information:
Field: PrintME
Table: Restaurant
Update To: False
Criteria: True

I am attempting to create a button that will undo check marks
in a checkbox named PrintME


Properties of the Visual Basic code that was setup by the Query
Wizard as shown as follows:

Private Sub Uncheckbox_Click()
On Error GoTo Err_Uncheckbox_Click

Dim stDocName As String

stDocName = "Uncheckbox"
DoCmd.OpenQuery stDocName, acNormal, acEdit

Exit_Uncheckbox_Click:
Exit Sub

Err_Uncheckbox_Click:
MsgBox Err.Description
Resume Exit_Uncheckbox_Click

End Sub
 
G

Gina Whipp

HankL,

Having no idea what you did under Tools|Security I don't know how to tell
you to reverse it. When *messing* around in that area I would always
recommend doing so on a copy. Let's try this... Create a new database and
try importing all your objects into it. I doubt it will work BUT it's worth
a try.

Can you try to remember what it was you did?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

HankL said:
Gina,

Ok before we go any further, I was messing around with the Tools/Security
for the Restaurants.mdb and now I cannot get into it.
I get the following message:

Do not have necessary permission to use Restaurants.mdb
When I opened Tools/Security
User & Group Permissions is gray out
User level security Wizard is gray out
Any suggestions as to how I can open this data base again with
permissions?
There is no passwords on any of my databases because I use this at home.

I will be happy to sent the database base to you. If you would just give
me instructions how to copy it so you can use it.

HankL
Gina Whipp said:
HankL,

Before we go into terminology we need to figure out why your query won't
run and the fact you get no messages. Is the database in a state where
you can send it to me? By all logic, what you have should work, so there
must be something stopping it.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

HankL said:
Hi Gina,

Below is what I found in the event procedure:

Private Sub Uncheckbox_Click()
On Error GoTo Err_Uncheckbox_Click

Dim stDocName As String

stDocName = "Uncheckbox"
DoCmd.OpenQuery stDocName, acNormal, acEdit

Exit_Uncheckbox_Click:
Exit Sub

Err_Uncheckbox_Click:
MsgBox Err.Description
Resume Exit_Uncheckbox_Click

End Sub
I really do not understand this terminology and would appreciate your
assistance

Thank you and have a Happy Thanksgiving

HankL
HankL,

When you moved the button, did you move the code? The code does not
move with the button. Check that the button in the Header section of
your form actually has the code. Go to Properties of the button and
look for the On_Click line and make sure it says [EVENT PROCEDURE].
Then press the elipse button [...] and see if the code is there. If
not, move your code there.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

Gina,

The button was on the form itself. I went into Design View and in the
VIEW dropdown, I selected Form Header/Footer and moved the command
button into the header. Just as a point of information I have another
button on the form itself and that works just fine.
I am using continuous forms as the Default View on the Format in the
properties.

I do not believe I am using a form/subform. When I originally setup
this database, I have the table and form views. I just have the one
form view and have no integrated it with any other databases.

HankL

HankL,

Where is the button? It should be in the form header or footer. OR
is this a form/subform?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

Here what I did to check it;
I put some checkmarks on 3-4 records in Form view
I opened the updated query in design view
Then I opened View dropdown and selected Datasheet View
I see the column PrintME and it shows the checkboxs with 3 checks
I selected Uncheckbox button on my Form view and the checks did not
disappear.
I also opened up the table and saw the checkmarks in the PrintMe
column of the table.

It is working but in a weird way.
I am using a continuous form and I scroll down and select certain
records with a checkmark in the PrintMe.
Then I select Uncheckbox button in the first record. Nothing
happens
If I go down to the second or fifth record and select Uncheckbox
then the checkmarks go away.

It is not always consistent. I have to play around from various
records to make it work.
As an example, I selected 4 records. I clicked the Uncheckbox and
one or two checkmarks disappeared..
Then I selected Uncheckbox button from another record and the other
disappeared.
I thought it didn't matter how many were checked off, once I clicked
on the Uncheckbox button all of the checkmarks would disappear

HankL,

No worries, here's how you view it without running it...

Open your query in Design View and click the datasheet *View*
button located in the upper left hand corner under File on the Menu
Bar. If the is a True or Yes in that view then run it and see if it
turns to False. If there is only blanks in there then it has
nothing to do. Either way, post back with what you see.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

Gina,

I am sorry but I do not quite understand your question of:

When you view it, without running it, do you see
any results?

I am not quite certain how I can see any results unless I attempt
to run the command button.
Please excuse my lack of knowledge.

Do you want me to do anything specific. I have attempted several
times to delete and reinstall the updated query as well as the
command button

HankL


I am not
HankL,

Well nothing wrong there. When you view it, without running it,
do you see any results?

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" - Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

UPDATE Restaurant SET Restaurant.PrintME = False
WHERE (((Restaurant.PrintME)=True Or (Restaurant.PrintME)=Yes));

Access 2003
No messages

HankL

HankL,

By not working, I assume you mean your check boxes remain the
True. Please post the SQL of your query. To do so, go to
Design View of your query and select SQL from the drop down
over in the far left corner.

When you post back, also post Access version and whether or not
you get any messages along with what the messages say.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" - Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

I setup a update query with a command button. However it is
not executing.
Update query has the following information:
Field: PrintME
Table: Restaurant
Update To: False
Criteria: True

I am attempting to create a button that will undo check marks
in a checkbox named PrintME


Properties of the Visual Basic code that was setup by the
Query Wizard as shown as follows:

Private Sub Uncheckbox_Click()
On Error GoTo Err_Uncheckbox_Click

Dim stDocName As String

stDocName = "Uncheckbox"
DoCmd.OpenQuery stDocName, acNormal, acEdit

Exit_Uncheckbox_Click:
Exit Sub

Err_Uncheckbox_Click:
MsgBox Err.Description
Resume Exit_Uncheckbox_Click

End Sub
 
G

Gina Whipp

HankL,

Have a look at this and see if it helps...

http://www.jmwild.com/Unsecure.htm

http://www.jmwild.com/Accesssecurity.htm

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

HankL said:
Gina,

Ok before we go any further, I was messing around with the Tools/Security
for the Restaurants.mdb and now I cannot get into it.
I get the following message:

Do not have necessary permission to use Restaurants.mdb
When I opened Tools/Security
User & Group Permissions is gray out
User level security Wizard is gray out
Any suggestions as to how I can open this data base again with
permissions?
There is no passwords on any of my databases because I use this at home.

I will be happy to sent the database base to you. If you would just give
me instructions how to copy it so you can use it.

HankL
Gina Whipp said:
HankL,

Before we go into terminology we need to figure out why your query won't
run and the fact you get no messages. Is the database in a state where
you can send it to me? By all logic, what you have should work, so there
must be something stopping it.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

HankL said:
Hi Gina,

Below is what I found in the event procedure:

Private Sub Uncheckbox_Click()
On Error GoTo Err_Uncheckbox_Click

Dim stDocName As String

stDocName = "Uncheckbox"
DoCmd.OpenQuery stDocName, acNormal, acEdit

Exit_Uncheckbox_Click:
Exit Sub

Err_Uncheckbox_Click:
MsgBox Err.Description
Resume Exit_Uncheckbox_Click

End Sub
I really do not understand this terminology and would appreciate your
assistance

Thank you and have a Happy Thanksgiving

HankL
HankL,

When you moved the button, did you move the code? The code does not
move with the button. Check that the button in the Header section of
your form actually has the code. Go to Properties of the button and
look for the On_Click line and make sure it says [EVENT PROCEDURE].
Then press the elipse button [...] and see if the code is there. If
not, move your code there.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

Gina,

The button was on the form itself. I went into Design View and in the
VIEW dropdown, I selected Form Header/Footer and moved the command
button into the header. Just as a point of information I have another
button on the form itself and that works just fine.
I am using continuous forms as the Default View on the Format in the
properties.

I do not believe I am using a form/subform. When I originally setup
this database, I have the table and form views. I just have the one
form view and have no integrated it with any other databases.

HankL

HankL,

Where is the button? It should be in the form header or footer. OR
is this a form/subform?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

Here what I did to check it;
I put some checkmarks on 3-4 records in Form view
I opened the updated query in design view
Then I opened View dropdown and selected Datasheet View
I see the column PrintME and it shows the checkboxs with 3 checks
I selected Uncheckbox button on my Form view and the checks did not
disappear.
I also opened up the table and saw the checkmarks in the PrintMe
column of the table.

It is working but in a weird way.
I am using a continuous form and I scroll down and select certain
records with a checkmark in the PrintMe.
Then I select Uncheckbox button in the first record. Nothing
happens
If I go down to the second or fifth record and select Uncheckbox
then the checkmarks go away.

It is not always consistent. I have to play around from various
records to make it work.
As an example, I selected 4 records. I clicked the Uncheckbox and
one or two checkmarks disappeared..
Then I selected Uncheckbox button from another record and the other
disappeared.
I thought it didn't matter how many were checked off, once I clicked
on the Uncheckbox button all of the checkmarks would disappear

HankL,

No worries, here's how you view it without running it...

Open your query in Design View and click the datasheet *View*
button located in the upper left hand corner under File on the Menu
Bar. If the is a True or Yes in that view then run it and see if it
turns to False. If there is only blanks in there then it has
nothing to do. Either way, post back with what you see.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

Gina,

I am sorry but I do not quite understand your question of:

When you view it, without running it, do you see
any results?

I am not quite certain how I can see any results unless I attempt
to run the command button.
Please excuse my lack of knowledge.

Do you want me to do anything specific. I have attempted several
times to delete and reinstall the updated query as well as the
command button

HankL


I am not
HankL,

Well nothing wrong there. When you view it, without running it,
do you see any results?

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" - Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

UPDATE Restaurant SET Restaurant.PrintME = False
WHERE (((Restaurant.PrintME)=True Or (Restaurant.PrintME)=Yes));

Access 2003
No messages

HankL

HankL,

By not working, I assume you mean your check boxes remain the
True. Please post the SQL of your query. To do so, go to
Design View of your query and select SQL from the drop down
over in the far left corner.

When you post back, also post Access version and whether or not
you get any messages along with what the messages say.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" - Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

I setup a update query with a command button. However it is
not executing.
Update query has the following information:
Field: PrintME
Table: Restaurant
Update To: False
Criteria: True

I am attempting to create a button that will undo check marks
in a checkbox named PrintME


Properties of the Visual Basic code that was setup by the
Query Wizard as shown as follows:

Private Sub Uncheckbox_Click()
On Error GoTo Err_Uncheckbox_Click

Dim stDocName As String

stDocName = "Uncheckbox"
DoCmd.OpenQuery stDocName, acNormal, acEdit

Exit_Uncheckbox_Click:
Exit Sub

Err_Uncheckbox_Click:
MsgBox Err.Description
Resume Exit_Uncheckbox_Click

End Sub
 
H

HankL

OK Gina,

I am up and running again. I restored Restaurants.mdb from my daily
external backup.

What would you like me to do now so that you can view my database?
It is a rather large database. Should I compress and zip it?

Please advise
HankL
 
G

Gina Whipp

HankL,

Okay, it runs perfectly. However, after REreading what you did to test your
button I see why you would *think* it is not running. If you click the
button while in table view or query datasheet view then the last record you
are on which is usully the last one you changed to True will not change
because the record is in *Edit Mode*. A record in *Edit Mode* is not saved
and the changing from False to True is not yest *committed* to the table and
the Update Query *ignores* that record.

Open your table, check your boxes, close the table, click your button and
then REopen your table...

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top