Results 1 to 3 of 3
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919

    Run-Time Error 3061

    dfltRetID is integer


    gblRetID is integer
    CurUserID is integer

    From Debug, I know that all of the integer values valid and are correct.

    Code:
    CurrentDb.Execute "UPDATE AddrlstUsers SET dfltRetID = " & gblRetID & " WHERE UserID = " & CurUserID
    I keep getting the error:
    Click image for larger version. 

Name:	Sample.jpg 
Views:	8 
Size:	19.7 KB 
ID:	13842

    I'm just not seeing the problem.

    Thanks,
    Bill

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    In the UPDATE statement dfltRetID should be the name of a field (column) in the table called "AddrlstUsers"

    CurrentDb.Execute "UPDATE AddrlstUsers SET dfltRetID = " & gblRetID & " WHERE UserID = " & CurUserID
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919
    Thanks Bob, field to be updated is dfltRetAddr NOT dfltRetID! My mind was stuck on thinking there was a syntax problem.

    Thanks again,
    Bill

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

Similar Threads

  1. Error 3061 Too Few parameters
    By gopherking in forum Programming
    Replies: 5
    Last Post: 10-06-2011, 11:50 AM
  2. Run-time error 3061
    By boywonder in forum Programming
    Replies: 1
    Last Post: 07-20-2011, 06:14 AM
  3. Run-Time error 3061
    By boywonder in forum Programming
    Replies: 12
    Last Post: 05-24-2011, 10:15 AM
  4. Replies: 1
    Last Post: 05-21-2011, 01:33 AM
  5. Error 3061
    By Shanks in forum Queries
    Replies: 4
    Last Post: 09-16-2009, 07:13 AM

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