PC Review


Reply
Thread Tools Rate Thread

Clearing a group of boxes on a Tabular form.

 
 
=?Utf-8?B?Q19Bc2NoZW1hbg==?=
Guest
Posts: n/a
 
      3rd May 2006
I have 5 fields in my DB (Customer, Legal, Date, Margin, and Net Charge). All
fields but the Net Charge I want saved to the DB as Net Charge will be
constantly changing per form. Through a query the user can pull up data by a
certain criteria whether its a date range, or a customers name. On the form
will be multiple records depending on the criteria of the user. Now the user
might input +500 in the 'Net Charge' box of the first record, and +300 in the
next record. What I need to happen (not even sure how to start this one code
wise) is when the form is closed all data in every Net Charge box is set back
to 0. I can get the text box of the current record to switch (
Net_Charge.text = "0"), but I am at a loss as to get all the Net Charge boxes
on the form to zero out. Any help would be greatly appreciated.

C_Ascheman
 
Reply With Quote
 
 
 
 
Mark A. Sam
Guest
Posts: n/a
 
      16th May 2006
Hello,

Here is an example of an Update Query which sets (Updates) a Boolean field
named [Available] to false (0) and a Date/Time named [DateLoading] field to
Null according to specific criteria in a table named [Loads].

CurrentDb.Execute "UPDATE Loads Set Available = 0, DateLoading = NULL WHERE
(CompanyID = 5509) AND (pw = 'cabbage')"

Try adapting this to your table and fields and put either on the Unload or
Close event of the form.

God Bless,

Mark A. Sam

"C_Ascheman" <(E-Mail Removed)> wrote in message
news:55B3CE12-3A18-4C00-B159-(E-Mail Removed)...
>I have 5 fields in my DB (Customer, Legal, Date, Margin, and Net Charge).
>All
> fields but the Net Charge I want saved to the DB as Net Charge will be
> constantly changing per form. Through a query the user can pull up data by
> a
> certain criteria whether its a date range, or a customers name. On the
> form
> will be multiple records depending on the criteria of the user. Now the
> user
> might input +500 in the 'Net Charge' box of the first record, and +300 in
> the
> next record. What I need to happen (not even sure how to start this one
> code
> wise) is when the form is closed all data in every Net Charge box is set
> back
> to 0. I can get the text box of the current record to switch (
> Net_Charge.text = "0"), but I am at a loss as to get all the Net Charge
> boxes
> on the form to zero out. Any help would be greatly appreciated.
>
> C_Ascheman



 
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
Clearing check boxes in a form Tom Microsoft Access Form Coding 2 25th Sep 2009 04:30 PM
tabular form that groups fields into combo boxes Amanda Microsoft Access Forms 3 28th Jul 2008 04:17 PM
Showing all data in tabular form boxes =?Utf-8?B?U2FkaWU=?= Microsoft Access Forms 2 17th May 2007 02:44 PM
Need to make a Tabular Subform in a Tabular Main Form.... =?Utf-8?B?TWlrZQ==?= Microsoft Access Forms 1 13th Jul 2004 07:53 PM
Re: Can't get a Tabular Subform to work with a Tabular Main form.... Rick B Microsoft Access Form Coding 0 13th Jul 2004 07:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:05 PM.