Share via

Access 2010 Query Parameter

Anonymous
2013-01-02T22:44:50+00:00

I am using Access 2010 and have repeatedly attempted to create a parameter prompt for the query, such as [Enter Order Number:] in the criteria box for the OrderID field.  IThe error messge is "You either have an error in your expression or you have attempted to use and undeclared parameter. " I have entered it exactly as the numerous samples I have looked at.

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

9 answers

Sort by: Most helpful
  1. Anonymous
    2013-01-03T00:42:56+00:00

    Under Design you should see VIEW on the ribbon and it's pulldown list SQL View.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2013-01-03T00:03:38+00:00

    ummmm.  The only options I have are design and datasheet views.  Thanks for your help.  ;-)

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2013-01-02T23:37:56+00:00

    I never did find the option to view the SQL statement.  Where did they hide that?

    In 2007 it in under Query Design - VIEW - SQL View.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2013-01-02T23:33:49+00:00

    This is a desktop database.  It has been 6 or 7 years since I have done in database programming and Access 2010 has changed things quite a bit.  While looking for the option to view the SQL, I found a button under Design titled "Parameter".  I clicked on it and wasn't sure what it wanted me to enter, but I put in my prompt and the data type, and gosh darnit, if didn't just work!

    I never did find the option to view the SQL statement.  Where did they hide that?

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2013-01-02T22:53:59+00:00

    Please open your query in SQL view and copy and paste the SQL text into a message here.

    Is this a Web database, or a desktop database?

    Was this answer helpful?

    0 comments No comments