I am not too crazy about using "Find Text" since it's a slow querry, but I decided to use it for the time being until I come up with a better routine.
The context:
A table of contact information with multiple telephone number fields (Home, Bus, cell etc.)along with a number of other fields.
The objective:
When someone calls and as a new record is being added with the caller's telephone number, a CanDepart event of the telephone field will search the current table for the same tel number for further actions.
The current solution:
Not the best,I have not given it too much thought as I am more focused on other aspects of this program development than this one item: Text Search will search for the number in All fields.
The problem:
This worked fine for a while, but now when you run the script, it will shut down alpha !!! I do not know if it is because the number of records increased or for some other reason. The app has maybe a hundred records or so, nothing astronomical.
The Question:
I have several questions:
1-Why does the program shut down? this is really the least of my concerns as I intend to abandon this script anyway.
2-What would be a better way to achieve the same objective?
I thought about breaking the script down into multiple ones and search telephone fields only (while we are on this subject, this would be a nice feature to add in V7: Search one field, all fields or certain fields). Before re-inventing the wheel I thought: a-maybe someone out there wrote a routine for simillar situation and b-I might end up with the program shutting down anyway if I continue with Text Search.
3-Other than Text Search, what else would you do to accomplish the same objective. I used exist() in a simillar app, works great. Any better ideas ??
Thanks.
Gabe
The context:
A table of contact information with multiple telephone number fields (Home, Bus, cell etc.)along with a number of other fields.
The objective:
When someone calls and as a new record is being added with the caller's telephone number, a CanDepart event of the telephone field will search the current table for the same tel number for further actions.
The current solution:
Not the best,I have not given it too much thought as I am more focused on other aspects of this program development than this one item: Text Search will search for the number in All fields.
The problem:
This worked fine for a while, but now when you run the script, it will shut down alpha !!! I do not know if it is because the number of records increased or for some other reason. The app has maybe a hundred records or so, nothing astronomical.
The Question:
I have several questions:
1-Why does the program shut down? this is really the least of my concerns as I intend to abandon this script anyway.
2-What would be a better way to achieve the same objective?
I thought about breaking the script down into multiple ones and search telephone fields only (while we are on this subject, this would be a nice feature to add in V7: Search one field, all fields or certain fields). Before re-inventing the wheel I thought: a-maybe someone out there wrote a routine for simillar situation and b-I might end up with the program shutting down anyway if I continue with Text Search.
3-Other than Text Search, what else would you do to accomplish the same objective. I used exist() in a simillar app, works great. Any better ideas ??
Thanks.
Gabe
Comment