Private Sub CmdSum_Click()
'declare
Dim Value1 As Double
Dim Value2 As Double
Dim SumValue1Value2
Dim dbs As Database
Set dbs = OpenDatabase("C:\Temp\Calculate\Calculate.mdb")
'calculate txtValue1 & txtValue2
Value1 = txtValue1.Value
Value2 = txtValue2.Value
SumValue1Value2 = Value1 + Value2
MsgBox SumValue1Value2
'Create a new record in the tblCalculate table. The
'Total is from addition of Value1 + Value2
dbs.Execute "INSERT INTO tblCalculate " _
& "(fldTotal) VALUES " _
& "('" & SumValue1Value2 & "');"
'" & s & "'
dbs.Close
'display result of calculation in txtvalue3 field
Me.txtValue3 = SumValue1Value2
'Requery bound field ?????????
End Sub