Function UpdateDeductibleTable()
Dim db As DAO.Database
Dim rs1 As DAO.Recordset
Dim rs2 As DAO.Recordset
Set db = tblClaimNumbers()
Set rs1 = db.OpenRecordset("qry_CalcAmtsforDedRepts")
Set rs2 = db.OpenRecordset("DeductibleInfoStatic")
rs1.MoveFirst
Do Until rs1.EOF
If rs1![ClaimNumber] > 0 Then
rs2.AddNew
rs2![ClaimNumber] = rs1![ClaimNumber]
rs2.Update
End If
Loop
RS.Close
Set RS = Nothing
Set db = Nothing
End Function
|