Results 1 to 2 of 2
  1. #1
    TimTDP is offline Novice
    Windows XP Access 2000
    Join Date
    Nov 2009
    Posts
    1

    Query will run as query but not as a recordset

    I have an unbound form that contains an unbound field


    I use this field as criteria for a query.

    After I have entered data into the field I can open the query and the data returned is correct.

    I have know placed a command button on the form. Part of the code behind the button is to create a recordset based on the query.
    When the code runs, I get a run time error 3061 - To few parameters - Expected 1
    It I now run the query - the code is still trying to run so it is high lighted in yellow, it does not return any records!

    Why is this?

  2. #2
    Nijal is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2009
    Posts
    4
    This is usually caused by asking the query to filter by a field[name] that does not exist in the original query.

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

Similar Threads

  1. Replies: 2
    Last Post: 10-01-2009, 03:39 PM
  2. Sorting data in ADO Recordset
    By martinjamesward in forum Programming
    Replies: 1
    Last Post: 08-28-2009, 05:38 AM
  3. ADO.Recordset - Write
    By Marvin in forum Programming
    Replies: 0
    Last Post: 07-17-2009, 07:56 AM
  4. Create a recordset for a report
    By vjboaz in forum Programming
    Replies: 0
    Last Post: 11-18-2008, 03:28 PM
  5. Add new Recordset using Recorset by Query
    By gailoni in forum Programming
    Replies: 1
    Last Post: 10-22-2008, 11:52 PM

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