Also, I just figured out that there is one Form (titled "JobDetails") that has a SubForm (titled "tblJobItems"). The main Form ("JobDetails") is where the "Totals" field resides. Next to that text box is a button that reads "Get Total". When you click that I guess it populates the "Totals" box from the info on the SubForm, ("TblJobItems"). When I looked into that button, I found the folowing:
Code:
Option Compare Database
Private Sub Command131_Click()
On Error GoTo Err_Command131_Click
Dim JobID As Long
Dim record As Variant
Dim rs As Recordset
Dim db As Database
Set db = CurrentDb
Set rs = Me.RecordsetClone
Set rs = db.OpenRecordset("InvoiceQry", dbOpenDynaset)
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
If IsNull(Me.JobID) Then
MsgBox "Please select job number"
Else
DoCmd.OpenReport "Invoice", acViewPreview, , "[JobID] = " & Me.JobID & ""
End If
Exit_Command131_Click:
Exit Sub
Err_Command131_Click:
MsgBox Err.Description
Resume Exit_Command131_Click
End Sub
Private Sub Command302_Click()
Me.JobDetailHead.Requery
Me.Total = [JobDetailHead].Form![txtTotal]
End Sub
I'm just trying to keep a running total in that field as the Job Items are added.
Does that help at all???