J
Jose A. Fdez.
I have two tables tblProducts and tblLoans with the following fields:
tblProducts:
IdProduct
DescriptionProduct
tblLoans:
IdLoan
IdProduct
DateOut
DateIn
How can I get a list of Products without duplications as follows:
IdProduct DescriptionProduct YesIfOut
Where the field "YesIfOut" must be:
"Yes" if, for this IdProduct, there is a record in tblLoans with DateIn
null
"No" if, for this IdProduct, there are no records in tblLoan OR all
records are with DateIn not null.
Is it possible to do that with a query?
Thanks.
tblProducts:
IdProduct
DescriptionProduct
tblLoans:
IdLoan
IdProduct
DateOut
DateIn
How can I get a list of Products without duplications as follows:
IdProduct DescriptionProduct YesIfOut
Where the field "YesIfOut" must be:
"Yes" if, for this IdProduct, there is a record in tblLoans with DateIn
null
"No" if, for this IdProduct, there are no records in tblLoan OR all
records are with DateIn not null.
Is it possible to do that with a query?
Thanks.