Results 1 to 2 of 2
  1. #1
    kumail123 is offline Novice
    Windows Vista Access 2007
    Join Date
    Mar 2012
    Posts
    1

    Runtime Error 3061 Expected 3

    I am trying to run a vba procedure. I am unable to because i get a runtime error 3061 expected 3. Here is the code with the problem. The coloured line is what needs to be debugged.


    Set rs = cts.OpenRecordset(qry, dbOpenDynaset)
    Do While Not rs.EOF
    RawMaterial = rs!Product_Weight_lbs


    rs.MoveNext
    Loop

    rs.Close


    Any suggestions and assistance is much appreciated!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You want to start over here, or pick up where we left off elsewhere?

    We already know it's in the building of your variable, which this should help with:

    http://www.baldyweb.com/ImmediateWindow.htm

    Plus you need to surround your text values with quotes.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. 3061 Error. Too few parameters. Expected 1.
    By rghollenbeck in forum Queries
    Replies: 5
    Last Post: 09-28-2011, 12:12 PM
  2. Run-time error 3061
    By boywonder in forum Programming
    Replies: 1
    Last Post: 07-20-2011, 06:14 AM
  3. Replies: 1
    Last Post: 05-21-2011, 01:33 AM
  4. db.Execute Error 3061
    By JimG in forum Programming
    Replies: 5
    Last Post: 05-17-2010, 09:34 AM
  5. Error 3061
    By Shanks in forum Queries
    Replies: 4
    Last Post: 09-16-2009, 07:13 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums