Re: HELP PLEASE! Question about Expression Building and data entry.
From: Rick B (anonymous_at_discussions.microsoft.com)
Date: 08/03/04
- Next message: MarkD: "Q: default open folder?"
- Previous message: Rick B: "Re: HELP PLEASE! Question about Expression Building and data entry."
- In reply to: Viken Karaguesian: "HELP PLEASE! Question about Expression Building and data entry."
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 3 Aug 2004 08:07:51 -0500
Also, the reason it is not storing is because you changed the control
source. If you took out the field name, how would it know where to store
the results? If you insist on keeping this poor design, you would need to
put the total field back in yout control source. Somewhere in code (maybe
in the before update) you'd need to tell it to slam a value in that field.
Private Sub Form_BeforeUpdate(Cancel As Integer)
TotalPayments=Payment01+Payment02+Payment03+Payment04
End Sub
"Viken Karaguesian" <vikenk@NOSPAMcomcast.net> wrote in message
news:g7adnWyySY-qkJLcRVn-vQ@comcast.com...
Hi all,
I hope someone can help me.
I'm building a database for a cousing of mine. In it, she wants payments to
be totalled. For that I have four fields: Payment01, Payment02, Payment03,
Payment04. These four fields are totalled into a 5th field called "Total
Payments". I made a form for the table.
I was able to figure out how to total the four fields: I brought up the
properties to the "Total Payments" field and in the "Control Source" box I
built an expression; =Payment01 + Payment02 + Payment03 + Payment04.
This expression worked - the four fields were totalled in the last field.
The problem is the final data does not make it into the table. When I open
the form, I can see the proper totals and values in the "Total Payments"
field, but when I open the table the "Total Payments" fields are ALL EMPTY.
I suppose that the underlying problem is that I changed the "control source"
of the "Total Payments" field. HOw can I get Access to total the four fields
AND put the results in the table? Any help would be appreciated. Thanks in
advance.
Viken Karaguesian
- Next message: MarkD: "Q: default open folder?"
- Previous message: Rick B: "Re: HELP PLEASE! Question about Expression Building and data entry."
- In reply to: Viken Karaguesian: "HELP PLEASE! Question about Expression Building and data entry."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|