Results 1 to 2 of 2
  1. #1
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Dec 2010
    Posts
    209

    Query with parameter from Form Textbox

    I can't remember the syntax to use a textbox titled txtName as a parameter for a query?
    What's going on is you enter the userName & push a button, and all data relevant to that user is displayed in a query window.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    the paramater name should be [forms]![formname]![fieldname] and you have to enter the data type

    if you're talking about a CRITERIA you'd use the same thing ([forms]![formname]![fieldname]) in the CRITERIA line of the query

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

Similar Threads

  1. Need Parameter Query to Open Form
    By HLTAYLOR in forum Misc
    Replies: 3
    Last Post: 06-20-2013, 09:41 AM
  2. Replies: 1
    Last Post: 02-28-2013, 01:20 PM
  3. Parameter query output to form
    By hasit86 in forum Forms
    Replies: 1
    Last Post: 01-13-2013, 01:23 PM
  4. Use form control value as parameter for query
    By jpkeller55 in forum Access
    Replies: 2
    Last Post: 02-07-2012, 06:09 PM
  5. Report with Parameter Query/Form
    By maggioant in forum Reports
    Replies: 0
    Last Post: 10-09-2009, 09:48 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