So what's the exact code you're using now, and what event is it running
on?
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
Yes I did have that wrong, but when I changed it to ICOMETOTAL the name
in
the data sheet it still did not update.
:
John had suggested putting the code in the form's BeforeUpdate event,
not
the BeforeUpdate event associated with one of the controls.
As well, if what you've got below is an actual copy-and-paste of your
code,
you're referring to the field as TOTALINCOME in code, whereas
everywhere
else you're calling it INCOMETOTAL.
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
I created a sample data base for this discussion. The three fields
in
the
file are INCOME1, INCOME2, AND INCOMETOTAL. In the form view I
created 2
text boxes; Text10 & Text16. In the data control source of Text10
I
put:
=[INCOME1] + [INCOME2] . In the before update of Text16 I put
this
procedure.
Private Sub Text16_BeforeUpdate(Cancel as Integer)
Me!TOTALINCOME = Me!Text10
End Sub
No Errorr messages were received, INCOMETOTAL was not updated
:
On Sat, 3 Dec 2005 15:15:02 -0800, "Bob B"
I tried what you sugested without success. I have 2 screen dumps
of
what I
did that I would like to send you. I don't see anyway I can
attach
them
to
this apply. Can I have your e-mail address so I can pass them
along
to
you?
Private email support is provided for paying consulting customers.
Unpaid volunteer support on these newsgroups is free.
If you can, please describe what you did and the error message in
text. Screenshots will be less than helpful in any case.
John W. Vinson[MVP]