Frankenoid
Registered User.
- Local time
- Today, 23:06
- Joined
- May 30, 2002
- Messages
- 10
I am a very occasional designer of databases, so my knowledge is limited.
What I need is a smarter combo box, that will use the autocomplete function to compare strings against two columns, not one. I'm doing a database to track our lawfirm's files as they go in-and-out of storage.
We have several clients for whom we've handled many litigation matters. For example, client Trout has had 5 cases: Fly Fishing, Boat Litigation, RV Dispute, Worm Farm Purchase, and Traffic Incident. The tables are set for a one-to-many with client on the one side, and case on the many side.
What I need is a combo box that will look to both the one AND the many side of the relationship; if the user types in RV, the correct case will come up, or if the user types Trout, the box will go to the list where the Trout cases are. If any of you have used QuickBooks, the Customer:Job relationship works this way.
Then, of course, we have the clients who have only one case, with nothing on the many side of the equation.
I've banged my head against this for 3 days now, and the best, inelegant, solution I've come up with is to create two queries, then combine them into a union query. The first query concantenates Client/Case into a string with client first, named Client the 2nd query into a string with Case first, also named Client, and the union combines them. However, that means that each case is listed twice -- as I said, not elegant, but it at least does the job.
There must be a better way. Can you help? Thanks
What I need is a smarter combo box, that will use the autocomplete function to compare strings against two columns, not one. I'm doing a database to track our lawfirm's files as they go in-and-out of storage.
We have several clients for whom we've handled many litigation matters. For example, client Trout has had 5 cases: Fly Fishing, Boat Litigation, RV Dispute, Worm Farm Purchase, and Traffic Incident. The tables are set for a one-to-many with client on the one side, and case on the many side.
What I need is a combo box that will look to both the one AND the many side of the relationship; if the user types in RV, the correct case will come up, or if the user types Trout, the box will go to the list where the Trout cases are. If any of you have used QuickBooks, the Customer:Job relationship works this way.
Then, of course, we have the clients who have only one case, with nothing on the many side of the equation.
I've banged my head against this for 3 days now, and the best, inelegant, solution I've come up with is to create two queries, then combine them into a union query. The first query concantenates Client/Case into a string with client first, named Client the 2nd query into a string with Case first, also named Client, and the union combines them. However, that means that each case is listed twice -- as I said, not elegant, but it at least does the job.
There must be a better way. Can you help? Thanks