Results 1 to 2 of 2
  1. #1
    amanthethi is offline Novice
    Windows 10 Office 365
    Join Date
    Feb 2021
    Posts
    7

    Needed an expression in a FORM to pick info from other table based on a condition

    Hi there,

    I have a form in which I have X,Y,Z Fields/Co-ordinates coming from a Table named "A" .

    Also I have a field called "ID" in this form which can be either 0 or a number.

    I want an expression in X,Y,Z to pick info from other field PQR from another Table named "B" when ID=0.



    Please and Thanks

  2. #2
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    = DLookup("PQR", "B","ID=0") ?

    EDIT - table B only has one record with ID of 0 and perhaps one record with ID of any particular number? If not, then DLookup will return a random record.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 0
    Last Post: 08-08-2018, 02:53 PM
  2. Replies: 6
    Last Post: 12-03-2017, 02:23 PM
  3. Replies: 7
    Last Post: 05-03-2012, 07:18 AM
  4. Replies: 5
    Last Post: 09-14-2011, 03:41 PM
  5. Replies: 3
    Last Post: 01-31-2011, 11:47 AM

Tags for this Thread

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