Results 1 to 4 of 4
  1. #1
    Wawa1979 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2018
    Posts
    2

    Simple select query imbedded into a form

    I don’t use access much so apologies if this is a simple question.

    I have a form we will be using to up ‘client info’. This form updates a table. In this form there is client ID, client name and other info.

    All clients are known already and are in table ‘tbl_clientinfo’

    Now the prob. As we don’t want people enter client names differently, I want to populate in the form the client name, from ‘tbl_clientinfo’ using the client I’d that was populated in the form already.

    I created a simple select query, and built the criteria to look to the client ID in the form, but this is not working and I can’t understand why?

    Any help would be greatly appreciated

  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,652
    Use a combo box with that SQL as the row source, and set the limit to list property to yes.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Wawa1979 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2018
    Posts
    2
    Quote Originally Posted by pbaldy View Post
    Use a combo box with that SQL as the row source, and set the limit to list property to yes.
    Not sure this will solve

    More simply as not being clear I think

    In the form
    Field 1 - “client ID”
    Field 2 - populate the client name from table clientid based on looking up the corresponding ‘client name’ that is associated with the client ID populated in field 1. This field should populate once field 1 is populated

    Clientid table simple has ‘client ID’ and ‘client name’ as the two only columns

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. VBA Run a simple select query?
    By kawi6rr in forum Programming
    Replies: 16
    Last Post: 12-14-2016, 12:29 PM
  2. Form imbedded in VBA
    By wwolfe01 in forum Forms
    Replies: 1
    Last Post: 11-20-2014, 12:01 PM
  3. Replies: 3
    Last Post: 10-31-2014, 08:08 AM
  4. Simple Select Query
    By Plee in forum Queries
    Replies: 2
    Last Post: 04-18-2011, 02:34 PM
  5. Simple Select query
    By sandlucky in forum Queries
    Replies: 3
    Last Post: 03-30-2011, 04:26 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