That is a very good point. What I have actually done is created a facility to identify the tables that ought to be searched. I have populated this myself in the first instance and have set up a way of allowing the admin user to add more tables to this as needed. It also allows the user to search a subset of tables of their choosing.
"Google" style search function
Collapse
X
-
-
Super duper AND top secret on top of that, WOW!!!! I always thought you were holding out on us now I know for certain.my next and revised super duper top secret logic, would be as follows:- For each iteration of the TableDefs Collection, find out what the Primary Key is for that Table.
- At each String Search match, record the value of the Primary Key instead of the Record Number.
- The Dump at each Match would now consist of:
- Match Number
- Primary Key Value (instead of Record Number)
- Table Name
- Field Name
- Value in Match Field
- Of course, this logic would have some flaws also, but I am genuinely interested in any comment(s) you may have on this approach.
- Logic #3 - don't have it at this time! (LOL)!
Using PKs is much better, I always like using the PK as the lookup.
and don't worry about your 3rd logic - Fish has taken care of that.
cheers,Comment
-
Excellent point, FishVal! Definitely thinking 'Outside-the-Box'!Just a thought.
What about iterating Recordsources of available (or relevant) forms instead of iterating available tables?
This way you:- doesn't get useless hits which couldn't be opened via existing forms
- search in context of "records" displayed by form which in relational database are mostly expected not to be records of particular table but a records of table join or filtered table
- .....
- PROFIT
Regards,
FishComment
Comment