Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,283
    You are not even posting consistent code?

    Code:
    tmpRS = db.OpenRecordset("SELECT * FROM tbl_PP_ISD_ WHERE tbl_PP_ISD_.[FPNumber] = '" & Me.txtProjectNumber & "' ;", dbOpenDynaset)
    Code:
    strSQL= "select * from tbl_PPISD where tbl_PPISD.[FPNumber] = " & Me.txtProjectNumber & "'""
    Table name is not even the same?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  2. #17
    carmenv323 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Oct 2021
    Location
    Massachusetts
    Posts
    78

    Wink

    Quote Originally Posted by Welshgasman View Post
    You are not even posting consistent code?

    Code:
    tmpRS = db.OpenRecordset("SELECT * FROM tbl_PP_ISD_ WHERE tbl_PP_ISD_.[FPNumber] = '" & Me.txtProjectNumber & "' ;", dbOpenDynaset)
    Code:
    strSQL= "select * from tbl_PPISD where tbl_PPISD.[FPNumber] = " & Me.txtProjectNumber & "'""
    Table name is not even the same?

    I realized it was a dumb name. I copied it from another table and made it local, added the underscore and bad idea so I changed it.

  3. #18
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,283
    So if you do as we have asked, Access should prompt you for what Access thinks is a parameter?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Too few parameters. Expected 1.
    By smith.jr in forum Programming
    Replies: 4
    Last Post: 08-06-2019, 07:23 PM
  2. Too few parameters. Expected 1.
    By SierraJuliet in forum Programming
    Replies: 17
    Last Post: 02-01-2019, 02:28 PM
  3. Too Few Parameters Expected 9
    By RunTime91 in forum Access
    Replies: 11
    Last Post: 05-31-2018, 07:10 PM
  4. too few parameters; expected 2
    By slimjen in forum Forms
    Replies: 13
    Last Post: 07-26-2012, 02:42 PM
  5. Too few parameters. expected 1.
    By seth1685 in forum Programming
    Replies: 1
    Last Post: 01-11-2012, 08:08 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