Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 03: paste calculated result from a form into a table?

Status
Not open for further replies.

Wizdar

Technical User
Sep 4, 2002
86
US
I’ve created a form that calculates entries from two fields, as in

=[Field 2]-[Field 1]

The problem is, although the results of the calculation are displayed in the form, they don’t get pasted into the table (Field 3).

I’m sure I’ve missed something simple, but can’t figure out what it is.
 
on some event in the form (right click and look at properties)...for a field of your choice "on lost focus" event for field 2 perhaps,

from the code builder for that event...

type...

me.Field 3=me.Field 2-me.Field 1

where "me." is the microsoft default declaration for the active form.

Each time the click or tabs out of field 2, it will calculate field 3...you will probably want to use some other event to trigger this action.
 
Ooops ..fumbled my words

Each time the user clicks or tabs out...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top