How do I get data from two Excel worksheets I need the curr_price from tblPrice when a record is selected from tblDay. I have linked them in the Database Editor with the field 'Stock' which is on both worksheets.
I am using the following formula to pick up the current price:
if {'tblDay'.Details} = ("Purchase") then {'tblPrice'.Curr_Price}
This works perfectly for 1 stockholding, but not the 20 or so others. I cannot see why it works for one and not the others.
When I browse the field data it only shows 8.45 (the one that I am getting) and 0.00. None of the other prices are listed in the browse field box.
I have Verified the database but it made no difference.
My Group Selection is
Maximum ({'tblDay'.Details}, {'tblDay'.Stock}) = "Purchase"
My Record Selection is
{'tblDay'.Details} in ["Purchase", "Sold"]
I would be grateful for any help you can give me.
Regards
I am using the following formula to pick up the current price:
if {'tblDay'.Details} = ("Purchase") then {'tblPrice'.Curr_Price}
This works perfectly for 1 stockholding, but not the 20 or so others. I cannot see why it works for one and not the others.
When I browse the field data it only shows 8.45 (the one that I am getting) and 0.00. None of the other prices are listed in the browse field box.
I have Verified the database but it made no difference.
My Group Selection is
Maximum ({'tblDay'.Details}, {'tblDay'.Stock}) = "Purchase"
My Record Selection is
{'tblDay'.Details} in ["Purchase", "Sold"]
I would be grateful for any help you can give me.
Regards