I have one base table
then I query from this table to make a record set
I manipulate the data using some looping functions
I then loop thru the array assigning it to a RS.
Then I write this record set to a new table.
What I want is have the write function to check if the data already exists. Example the table to written to "tblNew"
has ladder_date/tdRTp/NAV/id/ytdRTp
if the data already exists I do want the recordset to put in the table.
My ending
loop to assign to table is the code below
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("tblNew")
Dim i As Integer
i = 0
For i = (LBound(sngArray) + 1) To UBound(sngArray)
.AddNew
!ladder_date = ladderArray(i)
!tdRTp = tdChangeArray(i)
!NAV = navArray(i)
!ytdRTp = sngArray(i)
.Update
Next
End With
rs.Close
Set rs = Nothing
then I query from this table to make a record set
I manipulate the data using some looping functions
I then loop thru the array assigning it to a RS.
Then I write this record set to a new table.
What I want is have the write function to check if the data already exists. Example the table to written to "tblNew"
has ladder_date/tdRTp/NAV/id/ytdRTp
if the data already exists I do want the recordset to put in the table.
My ending
loop to assign to table is the code below
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("tblNew")
Dim i As Integer
i = 0
For i = (LBound(sngArray) + 1) To UBound(sngArray)
.AddNew
!ladder_date = ladderArray(i)
!tdRTp = tdChangeArray(i)
!NAV = navArray(i)
!ytdRTp = sngArray(i)
.Update
Next
End With
rs.Close
Set rs = Nothing