Results 1 to 2 of 2
  1. #1
    iostream is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2011
    Posts
    2

    Query SQL

    I have form and I want specify records source.

    So, I have query, for example:
    Code:
    SELECT fields FROM table WHERE id = !!!
    where "!!!" I want get dynamic value (id) from for example input (from form).
    How can I do it in Access?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Try

    SELECT fields FROM table WHERE id = Forms!FormName.ControlName
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

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