Results 1 to 6 of 6
  1. #1
    Ihthisham is offline Novice
    Windows 10 Office 365
    Join Date
    Jul 2021
    Posts
    10

    query to call a variable from a table in a form

    I just want to call a query by customer ID, and i want to chose the Cus ID from Customer Table.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    Quote Originally Posted by Ihthisham View Post
    I just want to call a query by customer ID, and i want to chose the Cus ID from Customer Table.
    I don't understand.
    Give us a bit more detail about your table and what you are trying to do
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    EDIT:

    My original post was made in error.
    Last edited by Bob Fitz; 05-16-2022 at 07:10 AM.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Bind a form or report to table or query. Apply filter to form or report. This can be done when form or report opens or after opening. Use code or ribbon tools. Review http://allenbrowne.com/ser-62.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    Bob, just replace post text with something if you're still able to edit at this point.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    Gicu's Avatar
    Gicu is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    If you don't reference a form control as explained by June your other option is using a dLookup().

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

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

Similar Threads

  1. Replies: 7
    Last Post: 11-29-2015, 07:24 AM
  2. Replies: 5
    Last Post: 04-27-2015, 02:40 PM
  3. Replies: 3
    Last Post: 06-08-2014, 05:36 PM
  4. Replies: 2
    Last Post: 05-09-2010, 04:10 AM
  5. Assign and call variable from table
    By smikkelsen in forum Access
    Replies: 7
    Last Post: 04-01-2010, 09:38 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