DrJavaJoe, I'm having trouble with the delete records.
I tried this (with no luck) to delete the records from the tblTEMP:
Private Sub Command1_Click()
Dim adoCmd As New ADODB.Command
adoCmd.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\EHicks\RESIDENTIAL PROPERTY MANAGER\RPM.mdb;Persist Security Info=False"
adoCmd.CommandText = "Insert into tblPERM (DepDate, DepNo, Tenant, TenantID, UnitNo, RentRate, SecDep, PetDep, PrevBalDue, VacantAmnt, LateChrg, PymtRcvd, NewBalDue, CkAmnt, TotalPayments, TotalPymtsMinusNSFCks) " & _
"Select DepDate, DepNo, Tenant, TenantID, UnitNo, RentRate, SecDep, PetDep, PrevBalDue, VacantAmnt, LateChrg, PymtRcvd, NewBalDue, CkAmnt, TotalPayments, TotalPymtsMinusNSFCks " & _
"From tblTEMP"
Delete "Select DepDate, DepNo, Tenant, TenantID, UnitNo, RentRate, SecDep, PetDep, PrevBalDue, VacantAmnt, LateChrg, PymtRcvd, NewBalDue, CkAmnt, TotalPayments, TotalPymtsMinusNSFCks " & _
"From tblTEMP"
adoCmd.Execute
End Sub
I got this compile error "Sub or function not defined" and the "Delete" was highlighted.
Could you help me with the DELETE query part of the code; guess I'm not sure exactly how to set it up?
Thanks!