todd.bellamy
New Member
How do i use a variable from the current row to fill in an SQL element field on save of a record?
I have a cost field that is tied to a piece of inventory. After the inventory piece is selected in the form I want the associated cost (its in the inventory table) to fill in on the inventory use log. The SQL is good but how do i use current row variables? What should the syntax be for "row variable" below?
SELECT fab_inventory.pcost from fab_inventory, logp
WHERE fab_inventory.id = logp.rig and logp.rig = " row variable"
I have a cost field that is tied to a piece of inventory. After the inventory piece is selected in the form I want the associated cost (its in the inventory table) to fill in on the inventory use log. The SQL is good but how do i use current row variables? What should the syntax be for "row variable" below?
SELECT fab_inventory.pcost from fab_inventory, logp
WHERE fab_inventory.id = logp.rig and logp.rig = " row variable"