Hi all,
I'm trying to upload my data from Access to SQL Server.
Code:
.Execute "INSERT INTO Payment ( PaymentId, FundId, Amount, AdjustedAmount, GrantFundId )" & _
" SELECT Payment.PaymentId, AWARDFundId, Payment.Amount, Payment.Amount, GrantFunds.GrantFundId" & _
" FROM (tblNEWAward INNER JOIN Payment ON tblNEWAward.AWRD_GrantId = Payment.GrantId)" & _
" INNER JOIN GrantFunds ON tblNEWAward.AWRD_GrantId = GrantFunds.GrantId" & _
" WHERE ReadyForUpload = True"
I get run time error 3622. You must use dbSeeChanges with OpenRecordSet when accessing a sql server table that has an identity column
However, when I use the dbSeeChanges option then I get run-time error '3000': reserved error (-7711); there is no message for this error.
Any ideas?
Thanks