ImLost
Registered User.
- Local time
- Today, 12:01
- Joined
- Nov 16, 2005
- Messages
- 44
Hello Ladies and Gents -
I am always appreciative of your help and hope you can help me out of this hole I've gotten myself into.
I have six seperate, unrelated tables (with correlating forms) pertaining to police data, and need to create a search field on a form on which the officer can enter an existing police report number and then open the appropriate form. Each police report number will be unique, but I cannot figure out how to do this. Searching across related tables or single tables? Fine - but I'm pulling my hair out on this one. The best I've been able to come up with, and feel free to laugh, is to create seperate queries for each report number on each table to equal the form field [text4] and then run a macro with 6 entries for OpenForm set to each form and corresponding query. The problem with that is that all 6 forms open - five blank and one with the appropriate record. I tried setting conditions on the macros so that the form would open only if the criteria is met. However, since I'm searching across a query's-worth of fields per "openform" request, all it does is prevent that entry in the macro from working at all. I'm sure I've made this much harder than it needs to be, but after staring at it this long, I'm ready for a deep breath and some much needed help.
So my question, after all that, is how can I make an end-user search feature search a field that appears in 6 seperate, unrelated tables? I need to do more than just this, but figured if I can get point back in an upwardly direction, I can take it from there. I'm not quite sure which way I'm pointing right now.
Thank you for your time and help - you guys are always great. Hopefully I don't sound like a total dumba$$. ^_- lol
Kastie
I am always appreciative of your help and hope you can help me out of this hole I've gotten myself into.
I have six seperate, unrelated tables (with correlating forms) pertaining to police data, and need to create a search field on a form on which the officer can enter an existing police report number and then open the appropriate form. Each police report number will be unique, but I cannot figure out how to do this. Searching across related tables or single tables? Fine - but I'm pulling my hair out on this one. The best I've been able to come up with, and feel free to laugh, is to create seperate queries for each report number on each table to equal the form field [text4] and then run a macro with 6 entries for OpenForm set to each form and corresponding query. The problem with that is that all 6 forms open - five blank and one with the appropriate record. I tried setting conditions on the macros so that the form would open only if the criteria is met. However, since I'm searching across a query's-worth of fields per "openform" request, all it does is prevent that entry in the macro from working at all. I'm sure I've made this much harder than it needs to be, but after staring at it this long, I'm ready for a deep breath and some much needed help.
So my question, after all that, is how can I make an end-user search feature search a field that appears in 6 seperate, unrelated tables? I need to do more than just this, but figured if I can get point back in an upwardly direction, I can take it from there. I'm not quite sure which way I'm pointing right now.
Thank you for your time and help - you guys are always great. Hopefully I don't sound like a total dumba$$. ^_- lol
Kastie