How can I have Crystal check to see if a record exists in a table.
We have two tables of information. One is intended for long term stock items, table A. The level of detail is quite high in this table. The other is intended for transitory stock items, Table B. This has less detail because the items included will likely be one time sales only.
Table C is a list of transactions, when the front end populates this table it asks if new items should be added to table A or table B.
I would like to build a report which will process transactions in table C and include information from table A or B as required.
I have tried the following but if the item is not in table A then nothing will print to the form. By nothing I mean none of the other records which are not associated with this formula (client name, address etc).
If the item is on Table A then everything works fine.
Thanks, Brad
We have two tables of information. One is intended for long term stock items, table A. The level of detail is quite high in this table. The other is intended for transitory stock items, Table B. This has less detail because the items included will likely be one time sales only.
Table C is a list of transactions, when the front end populates this table it asks if new items should be added to table A or table B.
I would like to build a report which will process transactions in table C and include information from table A or B as required.
I have tried the following but if the item is not in table A then nothing will print to the form. By nothing I mean none of the other records which are not associated with this formula (client name, address etc).
Code:
if {TableA.AltPartNo} = "" then {TableB.PartNo} else {Table.AltPartNo}
If the item is on Table A then everything works fine.
Thanks, Brad