Another simple Question (1 Viewer)

ox0069

Registered User.
Local time
Today, 09:12
Joined
Sep 14, 2004
Messages
11
ok, heres the problem, I can use calculation to add up other numbers in a form, but now i want to insert that number in to a record, I did it once but i can't find the database i did it in to jog my memory.
 

ColinEssex

Old registered user
Local time
Today, 14:12
Joined
Feb 22, 2002
Messages
9,129
Already posted in General and Forms sections

Col
 
Local time
Today, 08:12
Joined
Aug 2, 2004
Messages
6
I would do this in VBA. Simply put you create a text box on the form that your doing the calcuation in and link it to the record you want. Then perform your calculation and set the textbox value to the results. See below.

using VBA:

Sub Calc()

Dim Calc As Integer
Dim Val1 As Integer
Dim Val2 As Integer

'Just to signify a calculation...
Calc = Val1 * Val2

txtFieldOnForm.Value = Calc

End Sub

This is very rough and lacks any error handling that you would need but it should get you started. :cool:
 

Users who are viewing this thread

Top Bottom