Good news! Glad to help.
Barbara
>Barbara,
>
>EUREKA!!!.
>
>It was this part of the query:
>"WHERE Transactiondetail.ccardatr = ?CardRegistry.cCardAtr;"
>
>Changing it to "WHERE Transactiondetail.ccardatr = ?lcCardAtr;" fixed the whole thing.
>
>Thank you for your help
>Gabriel