I'm using a recordset in access vba to update specific records with an update command.
I'm receiving this error mesage
too few parameeters, expected 2
i looked it up and found that the DBGuy suggests
to add this link to a module and then call on it
as understood from there, I changed my code to
set recordset = fDAOGenericRst(Query)
[instead of
set recordset = CurrentDB.OpenRecordset(Query)]
the problem is I get the message "variable not defined" on that code
p.s. I tried both the ADO and the DAO.
both gave me the same error messsage.
as you can see in the code attached I tried these 3 methods.
I'm receiving this error mesage
too few parameeters, expected 2
i looked it up and found that the DBGuy suggests
to add this link to a module and then call on it
as understood from there, I changed my code to
set recordset = fDAOGenericRst(Query)
[instead of
set recordset = CurrentDB.OpenRecordset(Query)]
the problem is I get the message "variable not defined" on that code
p.s. I tried both the ADO and the DAO.
both gave me the same error messsage.
as you can see in the code attached I tried these 3 methods.
Code:
Dim Query
Query = "SELECT TDID, ContactID, TransactionDate, AdditionAmount, FundId, SpecialReceipt, RunningFund_ContactTotalDates, RunningContactTotalDates, ReceiptNumber From ReceiptsToCreateTotals_Dates " _
' Get a recordset using this command.
Dim Recordset
'Set Recordset = CurrentDb.OpenRecordset(Query)
'Set Recordset = fADOGenericRst(Query)
Set Recordset = fDAOGenericRst(Query)