hunterfan48
Registered User.
- Local time
- Yesterday, 21:02
- Joined
- Aug 17, 2008
- Messages
- 436
I have three tables.
The 1st table is for the sports cards. Each record is an individual sport card and the various columns and fields give detailed info about each record (card).
The 2nd table is for my transactions. Each record is a specific transaction whether is a card sale, card purchase, supplies purchase, etc. The various columns and fields have information about this transaction (record).
I have a third table (I guess I look at it as a middle table...not sure of the correct term for it) that generates a relationship between the 1st table and 2nd table.
I have two fields in my third table.
ID
Card ID
Both of the fields are linked to my 1st and 2nd table. The ID field is linked to my Transaction ID field in my 2nd table. The Card ID field is linked to my ID field in my 1st table.
Here's what I need to do now.
I need to be able to simply take each individual card ID and enter a transaction number for it. Now, some cards may not have a transaction number because I have cards already in inventory that I add to my database that haven't been bought. I just have them so I don't need to enter a transaction number yet.
Here's another twist though. Each individual card CAN HAVE UP TO 2 TRANSACTION ID'S. (A transaction for how the card was bought, and for how it was sold)
The only way I knew how was to do a query between table 1 and table 3.
I did a join type 2 between the ID field in my 1st table and card id field in table 3.
So, in this query I add the ID field from my 3rd table which stands for transactions and it shows all transactions for which a single card is associated. I tried to use this to create a form to add transactions to cards, but I found out this wasn't working.
LOL so does anybody follow here? Hopefully I made sense and I can get some clarification...
Thanks again!
The 1st table is for the sports cards. Each record is an individual sport card and the various columns and fields give detailed info about each record (card).
The 2nd table is for my transactions. Each record is a specific transaction whether is a card sale, card purchase, supplies purchase, etc. The various columns and fields have information about this transaction (record).
I have a third table (I guess I look at it as a middle table...not sure of the correct term for it) that generates a relationship between the 1st table and 2nd table.
I have two fields in my third table.
ID
Card ID
Both of the fields are linked to my 1st and 2nd table. The ID field is linked to my Transaction ID field in my 2nd table. The Card ID field is linked to my ID field in my 1st table.
Here's what I need to do now.
I need to be able to simply take each individual card ID and enter a transaction number for it. Now, some cards may not have a transaction number because I have cards already in inventory that I add to my database that haven't been bought. I just have them so I don't need to enter a transaction number yet.
Here's another twist though. Each individual card CAN HAVE UP TO 2 TRANSACTION ID'S. (A transaction for how the card was bought, and for how it was sold)
The only way I knew how was to do a query between table 1 and table 3.
I did a join type 2 between the ID field in my 1st table and card id field in table 3.
So, in this query I add the ID field from my 3rd table which stands for transactions and it shows all transactions for which a single card is associated. I tried to use this to create a form to add transactions to cards, but I found out this wasn't working.
LOL so does anybody follow here? Hopefully I made sense and I can get some clarification...
Thanks again!