E
Esaw
I am trying to create a query that displays data from a combo box and
autofill in a subform (I hope that makes sense) But when I set up the query
it shows no data. I was told to link the two tables in the query design. I
did and it is now pulling the correct data but the field that uses the
comobox in the subform is showing the ID number (PrimaryKey) and not the
StyleNumber as I thought it should. Here is the SQL for the join that is
working to this point. If anyone could help me out on this I'd appreciate.
I'm sure it's set up wrong, but I'm pretty new to Access and all it's fun
ways!
Thanks
Eisa
SELECT Contracts.ArtistName, Contracts.StyleNumber,
Contracts.StyleDescription, Contracts.ClientName, Contracts.ContractStart,
Contracts.ContractEnd, Contracts.RoyaltyRate, Contracts.Product
FROM Art RIGHT JOIN Contracts ON (Art.StyleNumber = Contracts.StyleNumber)
AND (Art.StyleDescription = Contracts.StyleDescription)
ORDER BY Contracts.StyleNumber, Contracts.ContractStart DESC;
autofill in a subform (I hope that makes sense) But when I set up the query
it shows no data. I was told to link the two tables in the query design. I
did and it is now pulling the correct data but the field that uses the
comobox in the subform is showing the ID number (PrimaryKey) and not the
StyleNumber as I thought it should. Here is the SQL for the join that is
working to this point. If anyone could help me out on this I'd appreciate.
I'm sure it's set up wrong, but I'm pretty new to Access and all it's fun
ways!
Thanks
Eisa
SELECT Contracts.ArtistName, Contracts.StyleNumber,
Contracts.StyleDescription, Contracts.ClientName, Contracts.ContractStart,
Contracts.ContractEnd, Contracts.RoyaltyRate, Contracts.Product
FROM Art RIGHT JOIN Contracts ON (Art.StyleNumber = Contracts.StyleNumber)
AND (Art.StyleDescription = Contracts.StyleDescription)
ORDER BY Contracts.StyleNumber, Contracts.ContractStart DESC;