Re: How can I reset a field to zero ...?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



your English is okay, jorge. my first impression is that you should not be
adding together field values and saving that total into another field in a
table. that violates data normalization rules, and there's rarely a good
business or technical reason to do so. you must have some query, or
expression, or code, that you use to sum those different fields. standard
procedure is to use that whenever you need to calculate the sum and show it
in a form or report, whatever. that way the calculated value is always
current and accurate - you don't have to come up with some way to update a
table field at specified intervals.

if you're determined to save the calculated value into a table (which i
really, really do not recommend) then setting the value of the field back to
zero is as simple as running an Update query (see Help for details about
update queries, if you're not familiar with them). how to do it "once a
month only", can be more complex; it depends on whether you open the
database every day, or whether you're comfortable with scheduling a task to
open the database automatically to run the update...just how you go about
doing it depends on a lot of variables in both your database and the process
it serves.

hth


"jorge" <jorge@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FB97C0E7-C9A8-4641-A6F8-DD19D6F27E72@xxxxxxxxxxxxxxxx
> Hi Tina,
>
> Let me try to explain (I´m portuguese and my english is not very good)
> Yes, I´m using Microsoft Access.
> The field I´m trying to put to zero every first day of a month, is a
> currency number.
> This field is uptaded (not every day) by a sum of different fields. It´s a
> goal I want to achieve in money. Every month I see if I got this goal or
not
> and how much is left to get that money. But that´s per month. That´s why I
> want to every month the money reset to zero.
>
> I wonder if you could can help me
> And thanks for trying to help
> --
> j.
>
>
> "tina" escreveu:
>
> > first of all, are you using MS Access? if so, we need a lot more
context -
> > there could be dozens of "reset a field to zero" depending on the
> > circumstances. suggest you describe your process, the purpose of the
field
> > and the zero value, and where, when, and why you want to reset it.
> >
> >
> > "jorge" <jorge@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:9C904A7F-7CDC-43B9-AFBF-DECECD670C50@xxxxxxxxxxxxxxxx
> > > Hello my friends,
> > >
> > > I Have a question:
> > > How can I reset a field to zero on the first day of every month ?
> > > I tried everything I knew (it´s not much of course), and this is
driving
> > me
> > > crazy.
> > >
> > > Thank u so much!
> > > Take care and keep up your excelent work.
> > >
> > > --
> > > j.
> >
> >
> >


.



Relevant Pages

  • RE: Help!! I having problems with Null Values!
    ... like any number X divided by zero is undefined in mathematics. ... Having separate fields for each month is not good database design. ... This is known as a multi-valued field design. ... This is the first time I am using the report feature. ...
    (microsoft.public.access.gettingstarted)
  • Re: Where to find good lisp critiques?
    ... >> The final state is that, yes, you no longer have a job and have zero ... but is not allocated via money. ... The suggestion is that most goods become no longer scarce, ... But perhaps he could trade his own human labor for them. ...
    (comp.lang.lisp)
  • Re: Conditional printing of records in the detail section of a rep
    ... and have lots of computer books never read. ... LOL I was afraid I was right about the query. ... I didn't create this database, ... The default data is zero. ...
    (microsoft.public.access.reports)
  • Re: making fun of atheists
    ... from patting yourself on the back, $Zero. ... Money, money, money. ... deflation struck and now although you'd need to be $Penny the ... The other day I found a lucky ...
    (misc.writing)
  • RE: [SLE] Zero day start
    ... I assume it's like LDAP and you log in once and it authenticates ... against one database. ... The zero day start/stop thing is a way of saying ... ... but the novell site doesn't have as much information as I ...
    (SuSE)