Results 1 to 2 of 2
  1. #1
    prawln is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Mar 2011
    Posts
    7

    Run-time error '3061' Too few parameters, Expected 1

    Hey guys having some issues with copying 1 row from a table to another. I have this working on for another table but this one doesnt seem to work.

    The Combobox "Coordinator" is the primary key and is a text box.


    The error im getting is:

    Run-time error '3061' Too few parameters, Expected 1


    CODE
    Private Sub Checkbox_AfterUpdate()
    If Form_SubActionregWIP.Checkbox = True Then

    CurrentDb.Execute "INSERT INTO tblactionregCOM ( Dateentered, Coordinator, Contact, Type, Workstation, Modelw, Asset, Serial, Software, ActionRequired, ActionTaken, Closedate) " & _
    " SELECT Dateentered, Coordinator, Contact, Type, Workstation, Modelw, Asset, Serial, Software, ActionRequired, ActionTaken, Closedate " & _
    " FROM tblActionreg " & _
    " WHERE Coordinator = " & Me.Coordinator, dbFailOnError




    DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
    DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70

    End If


    End Sub

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Is Coordinator number or text datatype? If is text field enclose the variable with apostrophe delimiters. Otherwise, can't see anything wrong with code.

    " WHERE Coordinator = '" & Me.Coordinator & "'", dbFailOnError
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Error 3061 Too Few Parameters Expecting 1
    By ironman in forum Programming
    Replies: 4
    Last Post: 05-09-2011, 03:20 PM
  2. Too few parameters expected 4
    By forestgump in forum Programming
    Replies: 1
    Last Post: 04-15-2011, 09:10 AM
  3. Run-time '3051' - Too few parameters. Expected 1
    By jgelpi16 in forum Programming
    Replies: 3
    Last Post: 04-11-2011, 07:17 AM
  4. Error 3061
    By Shanks in forum Queries
    Replies: 4
    Last Post: 09-16-2009, 07:13 AM
  5. Too few parameters. Expected 2.
    By PPCMIS2009 in forum Access
    Replies: 0
    Last Post: 01-28-2009, 01:02 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