B
Bob St. Aubyn
Greetings All,
I have a PT QueryDef that is created on the fly as the user opens the app.
I create the qdf on every open because I have a form bound to it and,
depending on the user (whos identity is captured just prior), the form will
show a list customized for them.
The problem is that I'm a bit uncomfortable with the connect property for
this qdf being readily available to probing users' eyes. The Query can be
hidden, but only manually through setting the property in the UI (I've
searched NG's and Google for two days and found no way to do this
programmatically). I have also tried deleting the query on closing the db,
but it appears that the QueryDefs collection doesn't know about the
code-created query until the next compact.
By the way, I'm obliged to work with Acc97 here... :-(
1. Does anyone know a way to hide a QueryDef?
2. The Refresh method on the QueryDefs collection does not seem to add the
new query to the catalog (although running it does not produce an error).
Is there another way I can delete the query without having to compact?
3. The real issue is hiding the connect string. Is there a better way?
TIA
I have a PT QueryDef that is created on the fly as the user opens the app.
I create the qdf on every open because I have a form bound to it and,
depending on the user (whos identity is captured just prior), the form will
show a list customized for them.
The problem is that I'm a bit uncomfortable with the connect property for
this qdf being readily available to probing users' eyes. The Query can be
hidden, but only manually through setting the property in the UI (I've
searched NG's and Google for two days and found no way to do this
programmatically). I have also tried deleting the query on closing the db,
but it appears that the QueryDefs collection doesn't know about the
code-created query until the next compact.
By the way, I'm obliged to work with Acc97 here... :-(
1. Does anyone know a way to hide a QueryDef?
2. The Refresh method on the QueryDefs collection does not seem to add the
new query to the catalog (although running it does not produce an error).
Is there another way I can delete the query without having to compact?
3. The real issue is hiding the connect string. Is there a better way?
TIA