There are 4 things you can do that I can think of:
1. Pass the username and password in each call. You can do this by storing the username and password in a local table and using a password mask on that field so people can't read your system password. Then open a hidden form and take the data from the form each time you need it. Better still, create a user that only has read access to the back end, and then it really won't matter if they see it. Also make the table hidden.
2. When the database opens, prompt the user for the username and password to the back end, and then store these in a hidden table/form, and take the username and password from the hidden form for each call.
3. Since this is an OLAP front end, do what I do on my OLAP Access apps: Pull ALL the data you will need in one pull when the database opens and store it in local tables. Then do all the rest of your work locally. This can bloat the front end, but if it doesn't go more than 100MB or so, the users won't really see a huge problem. Load might take 20 seconds.
4. Permanently link the front end to the back end. Then all the rest of your functions are to "locaL' tables, so no username and password are required. I do this as well, but mostly for apps where the user is changing data on the back end. The user will only be prompted once for username and password.
Does this help?
mmcdonal
|