Solved

My new VB 6 application doesn't work for non Administrtor user accounts

Posted on 2007-11-14
6
244 Views
Last Modified: 2013-11-14
Ive written an application using Visual Basic 6.0 SP6.  The application uses an Access 2003 data base.  I then created an install package using Visual Studio Installer 6.0.   When the application is installed and used by a user with administrator permissions, everything runs fine.  When a different user (power user) on the same PC logs on (without Administrative permissions), no data is displayed in any of the data fields.  The one exception is that the ADO data control displays the number of records in the record set, which indicates that my program is successfully accessing the data base.  I'm using Windows XP Pro.

If I give the end user administrator permissions, everything then works. Also, when logged in as a power user without administrator permissions and you right click the executable file and click Run as and give an administrator user name and password, everything works.

Can anyone tell me why the end user account doesnt display any data but the administrator account works fine?  
0
Comment
Question by:RiverGuy59
6 Comments
 
LVL 9

Expert Comment

by:ajkamp
ID: 20284601
Where did you put the Access DB? If the user doesn't have read/write/modify permissions on the folder/drive Access won't work correctly.
0
 

Author Comment

by:RiverGuy59
ID: 20285732
The Access DB is placed in the same folder as the application by default.  It does have read/write/modify permissions.
0
 
LVL 18

Accepted Solution

by:
mdougan earned 500 total points
ID: 20290548
I know that I faced similar problems a long time back.  What I did was open up the Local Security Settings on the computer and compared what priviliges Administrator had that Authenticated Users did not have, and one at a time, I would enable the privilige for Authenticated Users, then try the application.  Make a note of each one you enable as you go along.  If enabling a permission didn't make  your application work, don't undo it yet, just make a note of that and keep going until your application works, or, you've enabled all permissions that Administrator has (if it still doesn't work then undo everything you set and look for another solution).

If you change a permission and your app starts to work, then start at the first permission you changed and start removing the permissions.  If suddenly it stops working, re-enable that permission and move on to the next one.  In the end, you may have found one or more permissions that are necessary for your app to work.

Some permissions shouldn't have any impact, and should be pretty obvious, such as "Shut down the system from a remote computer".  But, if you want to be thorough, go through them all.

I vaguely remember my problem involved the Create Global Object permission or maybe Impersonate a client after Authentication.
0
 

Author Comment

by:RiverGuy59
ID: 20291315
Thanks mdougan,

I'm on the road today but will give this a try tomorrow.
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20632830
Forced accept.

Computer101
EE Admin
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now