AdamFeerst
Registered User.
- Local time
- Today, 02:51
- Joined
- Sep 21, 2015
- Messages
- 63
What's the best (or another) way?
When I try below, I get error #3061, Too few parameters. Expected 1, on the line highlighted.
Dim rs As DAO.Recordset
Dim stSQL As String
stSQL = "SELECT qryRevTranBiller.BillerName, qryRevTranBiller.ClientID, qryRevTranBiller.Prod, qryRevTranBiller.AGTSTS, qryRevTranBiller.PRDSTS, qryRevTranBiller.LastUpd, " & _
"qryRevTranBiller.Rev0112 , qryRevTranBiller.Tran0112, qryRevTranBiller.RevYTD, qryRevTranBiller.TranYTD, qryRevTranBiller.Rev1, qryRevTranBiller.Tran1, qryRevTranBiller.Rev2, qryRevTranBiller.Tran2, " & _
"qryRevTranBiller.Rev3, qryRevTranBiller.Tran3, qryRevTranBiller.Rev4, qryRevTranBiller.Tran4, qryRevTranBiller.Rev5, qryRevTranBiller.Tran5, qryRevTranBiller.Rev6, qryRevTranBiller.Tran6, " & _
"qryRevTranBiller.Rev7, qryRevTranBiller.Tran7, qryRevTranBiller.Rev8, qryRevTranBiller.Tran8, qryRevTranBiller.Rev9, qryRevTranBiller.Tran9, qryRevTranBiller.Rev10, qryRevTranBiller.Tran10, " & _
"qryRevTranBiller.Rev11, qryRevTranBiller.Tran11, qryRevTranBiller.Rev12, qryRevTranBiller.Tran12, qryRevTranBiller.Rev1324, qryRevTranBiller.Tran1324, qryRevTranBiller.Rev13, qryRevTranBiller.Tran13, " & _
"qryRevTranBiller.Rev14, qryRevTranBiller.Tran14, qryRevTranBiller.Rev15, qryRevTranBiller.Tran15 , qryRevTranBiller.Rev16, qryRevTranBiller.Tran16, qryRevTranBiller.Rev17, qryRevTranBiller.Tran17, " & _
"qryRevTranBiller.Rev18, qryRevTranBiller.Tran18, qryRevTranBiller.Rev19 , qryRevTranBiller.Tran19, qryRevTranBiller.Rev20, qryRevTranBiller.Tran20, qryRevTranBiller.Rev21, qryRevTranBiller.Tran21, " & _
"qryRevTranBiller.Rev22, qryRevTranBiller.Tran22, qryRevTranBiller.Rev23, qryRevTranBiller.Tran23, qryRevTranBiller.Rev24, qryRevTranBiller.Tran24, qryRevTranBiller.Rev2536, qryRevTranBiller.Tran2536, " & _
"qryRevTranBiller.Rev25, qryRevTranBiller.Tran25, qryRevTranBiller.Rev26, qryRevTranBiller.Tran26, qryRevTranBiller.Rev27, qryRevTranBiller.Tran27, qryRevTranBiller.Rev28, qryRevTranBiller.Tran28, " & _
"qryRevTranBiller.Rev29, qryRevTranBiller.Tran29, qryRevTranBiller.Rev30, qryRevTranBiller.Tran30, qryRevTranBiller.Rev31, qryRevTranBiller.Tran31, qryRevTranBiller.Rev32, qryRevTranBiller.Tran32, " & _
"qryRevTranBiller.Rev33, qryRevTranBiller.Tran33, qryRevTranBiller.Rev34, qryRevTranBiller.Tran34, qryRevTranBiller.Rev35, qyRevTranBiller.Tran35 , qryRevTranBiller.Rev36, qryRevTranBiller.Tran36" & _
" FROM qryRevTranBiller " & _
"WHERE qryRevTranBiller.ClientID='" & Me.ClientID & "'"
Set rs = CurrentDb.OpenRecordset(stSQL)
Set rs = Nothing
When I try below, I get error #3061, Too few parameters. Expected 1, on the line highlighted.
Dim rs As DAO.Recordset
Dim stSQL As String
stSQL = "SELECT qryRevTranBiller.BillerName, qryRevTranBiller.ClientID, qryRevTranBiller.Prod, qryRevTranBiller.AGTSTS, qryRevTranBiller.PRDSTS, qryRevTranBiller.LastUpd, " & _
"qryRevTranBiller.Rev0112 , qryRevTranBiller.Tran0112, qryRevTranBiller.RevYTD, qryRevTranBiller.TranYTD, qryRevTranBiller.Rev1, qryRevTranBiller.Tran1, qryRevTranBiller.Rev2, qryRevTranBiller.Tran2, " & _
"qryRevTranBiller.Rev3, qryRevTranBiller.Tran3, qryRevTranBiller.Rev4, qryRevTranBiller.Tran4, qryRevTranBiller.Rev5, qryRevTranBiller.Tran5, qryRevTranBiller.Rev6, qryRevTranBiller.Tran6, " & _
"qryRevTranBiller.Rev7, qryRevTranBiller.Tran7, qryRevTranBiller.Rev8, qryRevTranBiller.Tran8, qryRevTranBiller.Rev9, qryRevTranBiller.Tran9, qryRevTranBiller.Rev10, qryRevTranBiller.Tran10, " & _
"qryRevTranBiller.Rev11, qryRevTranBiller.Tran11, qryRevTranBiller.Rev12, qryRevTranBiller.Tran12, qryRevTranBiller.Rev1324, qryRevTranBiller.Tran1324, qryRevTranBiller.Rev13, qryRevTranBiller.Tran13, " & _
"qryRevTranBiller.Rev14, qryRevTranBiller.Tran14, qryRevTranBiller.Rev15, qryRevTranBiller.Tran15 , qryRevTranBiller.Rev16, qryRevTranBiller.Tran16, qryRevTranBiller.Rev17, qryRevTranBiller.Tran17, " & _
"qryRevTranBiller.Rev18, qryRevTranBiller.Tran18, qryRevTranBiller.Rev19 , qryRevTranBiller.Tran19, qryRevTranBiller.Rev20, qryRevTranBiller.Tran20, qryRevTranBiller.Rev21, qryRevTranBiller.Tran21, " & _
"qryRevTranBiller.Rev22, qryRevTranBiller.Tran22, qryRevTranBiller.Rev23, qryRevTranBiller.Tran23, qryRevTranBiller.Rev24, qryRevTranBiller.Tran24, qryRevTranBiller.Rev2536, qryRevTranBiller.Tran2536, " & _
"qryRevTranBiller.Rev25, qryRevTranBiller.Tran25, qryRevTranBiller.Rev26, qryRevTranBiller.Tran26, qryRevTranBiller.Rev27, qryRevTranBiller.Tran27, qryRevTranBiller.Rev28, qryRevTranBiller.Tran28, " & _
"qryRevTranBiller.Rev29, qryRevTranBiller.Tran29, qryRevTranBiller.Rev30, qryRevTranBiller.Tran30, qryRevTranBiller.Rev31, qryRevTranBiller.Tran31, qryRevTranBiller.Rev32, qryRevTranBiller.Tran32, " & _
"qryRevTranBiller.Rev33, qryRevTranBiller.Tran33, qryRevTranBiller.Rev34, qryRevTranBiller.Tran34, qryRevTranBiller.Rev35, qyRevTranBiller.Tran35 , qryRevTranBiller.Rev36, qryRevTranBiller.Tran36" & _
" FROM qryRevTranBiller " & _
"WHERE qryRevTranBiller.ClientID='" & Me.ClientID & "'"
Set rs = CurrentDb.OpenRecordset(stSQL)
Set rs = Nothing