Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runtime error 3061 Too few parameters Expected 1 1

Status
Not open for further replies.

vba317

Programmer
Mar 5, 2009
708
US
I am running Access 2003 and I just received this runtime error 3061. I have tried different quote structures in my strSQL statement with no luck. I was hoping to get some help.
The debug statement comes out like this: SELECT r.grp1 FROM dbo_rptq_rpts r INNER JOIN dbo_dic_Client c ON c.clid = r.clntid WHERE ((c.uci =AIS));
Tom

Code:
strSQL = "SELECT r.grp1 " & _
             "FROM dbo_rptq_rpts r " & _
             "INNER JOIN dbo_dic_Client c ON c.clid = r.clntid " & _
             "WHERE ((c.uci =" & (GetUCI(liCl)) & "));"
             Debug.Print strSQL
             
    Set rstORDER = CurrentDb.OpenRecordset(strSQL, dbOpenSnapshot)
      If Not rstORDER.EOF Then
            With rstORDER
                .MoveLast
                .MoveFirst
            End With
        End If
    intGrp = rstORDER![grp1]
    If intGrp = 1 Or intGrp = 3 Then strORDER = "ORDER BY dos,PatName;" 'Unapplied and Facility sorting order

 
Code:
"WHERE c.uci='" & GetUCI(liCl) & "'"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top