hunterfan48
Registered User.
- Local time
- Yesterday, 16:09
- Joined
- Aug 17, 2008
- Messages
- 436
Yes...and it is saving a great amount of time indeed!
SELECT
tblTransactions.TransactionID,
tblTransactions.[Buy/Sell],
tblInventory.BuyingTransactionID,
tblInventory.SellingTransactionID,
tblInventory.CardID
FROM
tblTransactions
INNER JOIN
tblInventory
ON
(tblTransactions.TransactionID=tblInventory.SellingTransactionID)
Or
(tblTransactions.TransactionID=tblInventory.BuyingTransactionID)
WHERE
tblTransactions.TransactionID=23;
Ok.However, I don't think creating another table is the right solution. I just was advised that I didn't need a third linking table.
Have you tried the query which I have posted in my previous post with & without the where clause?Based off of what I have now, I just want a query to show me all transactions and their associated cards. So, if card ID (#2304) has both a selling and buying transaction value, it would then be listed twice in the query as two seperate records.
When I enter a new transaction on the form, I have no way of seeing the cards related.
Is there a way to tell Access if I marked transaction #2393 a "Buy" in my (Buy/Sell) field it will use a specific query. But if I mark it a "Sell" it will use a different query??
CardID BuyingTransactionID SellingTransactionID
1 1 3
2 2 4
3 2 4
4 1 3
5 2 3
6 2 4
7
8
TransactionID CustomerID Buy/Sell
1 10 Buy
2 11 Buy
3 12 Sell
4 13 Sell
SELECT
tblTransactions.TransactionID,
tblTransactions.[Buy/Sell],
tblInventory.BuyingTransactionID,
tblInventory.SellingTransactionID,
tblInventory.CardID
FROM
tblTransactions
INNER JOIN
tblInventory
ON
(tblTransactions.TransactionID=tblInventory.SellingTransactionID)
Or
(tblTransactions.TransactionID=tblInventory.BuyingTransactionID)
WHERE
tblTransactions.TransactionID=3;
TransactionID Buy/Sell BuyingTransactionID SellingTransactionID CardID
3 Sell 1 3 1
3 Sell 1 3 4
3 Sell 2 3 5
2) The query is expecting you to supply the TransactionID, which it is not getting. Hence the message. Think you need to check your WHERE clause.It still asks me to enter parameter values and doesn't return any records.
Yea...it would work,
but I would like it to return all the transactions...
I don't want to put in just one.
Can you just post based on the earlier dummy tables data posted by me, what kind of results you are looking for.but I would like it to return all the transactions...
I don't want to put in just one.
Many a times, the moving away & stopping the thinking about what we are doing throws up real good ideas.I'm thinking about starting over and figuring out a new way to display the data...
aftere this much headache,
I think there must be a better way to show it on a form.
I think part of my problem is that
I want to show so many different things on one form.
I should seperate them out and use different forms to help display my data.
Is this smart?