PC Review


Reply
Thread Tools Rate Thread

Automaticly clear checkmarks

 
 
Kevbro7189
Guest
Posts: n/a
 
      16th Apr 2010
In my main Table I have a field called [Print]. It's a Yes/No check mark. I
use this field to let me know if a record needs to be printed, it's
automatically filled in as "-1" when the record is first generated. Through
a Query (to find these records) I have a form that lists all the records that
needs to be printed, so the user can double check them before printing.

My problem is the user has to manually uncheck the [Print] field after they
print the records. How can I go about and automate this process to uncheck
the field when the print button is pressed?

 
Reply With Quote
 
 
 
 
fredg
Guest
Posts: n/a
 
      16th Apr 2010
On Fri, 16 Apr 2010 10:16:05 -0700, Kevbro7189 wrote:

> In my main Table I have a field called [Print]. It's a Yes/No check mark. I
> use this field to let me know if a record needs to be printed, it's
> automatically filled in as "-1" when the record is first generated. Through
> a Query (to find these records) I have a form that lists all the records that
> needs to be printed, so the user can double check them before printing.
>
> My problem is the user has to manually uncheck the [Print] field after they
> print the records. How can I go about and automate this process to uncheck
> the field when the print button is pressed?


Add a Command button to the form.
Code it's Click event:
CurrentDb.Execute "Update MyTable set MyTable.[Print] =
0;",dbFailOnError

Change MyTable to whatever the actual table name is.

**After** you are sure the report has successfully printed, click the
command button to reset all records.

NOTE: Print is a reserved Access/VBA/Jet word and should not be used
as a field name.

For a more complete list of reserved words, see:
http://www.allenbrowne.com/Ap****ueBadWord.html
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting Checkmarks John Moore Microsoft Excel Misc 1 17th May 2010 12:59 PM
Query Checkmarks BMaerhofer Microsoft Access Queries 1 21st Aug 2009 05:01 PM
Checkmarks in Forms =?Utf-8?B?YWlyaG9ja2V5Y2FuYWRh?= Microsoft Word Document Management 1 20th Sep 2007 08:40 PM
yes/no checkmarks PLEASE HELP =?Utf-8?B?aWR5bGxob3VuZHNAaG90bWFpbC5jb20=?= Microsoft Access Database Table Design 8 25th May 2005 10:41 PM
remove checkmarks =?Utf-8?B?SWR5bGx3aWxkIEZpcmUgRGVwdC4=?= Microsoft Access 1 24th May 2005 09:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:34 PM.