how to get information from the dependent table into general table, similar Excel Vlookup

  • 0
  • 1
  • Question
  • Updated 2 months ago
  • In Progress
Hello,

I have 2 tables in my App, 1st is the general one, which should contain all statuses from the second table.

In both that tables I have equal ID numbers as a key. 

How I can connected tables?
 For example, if in table 2 , ID #1 changed its status to completed in the field status, then QB will automatically update status in table 1 with id #1.

In excel I used Vlookup formula for that...
Photo of ilya

ilya

  • 94 Points 75 badge 2x thumb

Posted 2 months ago

  • 0
  • 1
Photo of John Rogers

John Rogers

  • 340 Points 250 badge 2x thumb
Instead of changing it by automation, why not change the field in one of the tables to a lookup field to match the status of the other. So at all times the statuses will match? Would this not fix your problem?
Photo of ilya

ilya

  • 94 Points 75 badge 2x thumb
Sound good, how I can make such a lookup?
Photo of John Rogers

John Rogers

  • 340 Points 250 badge 2x thumb
Sorry for late response, when making a field the very last field type should be a lookup field. 

Careful changing field types because it will delete all stored data connected to the previous field data type. I would recommend creating an entirely new field just for testing, make it a lookup field.

Another way to do this,

Table 1: Field 1 = testField   //this is a text field
Table 2: Field 2 = testField2 //this is the lookup field which is a formula text

now in the formula text you just put in [testField]

this will import whatever is in testField and display it in testField2
Photo of ilya

ilya

  • 94 Points 75 badge 2x thumb
thank you.