Link to home
Start Free TrialLog in
Avatar of wjshore
wjshore

asked on

VB difference under Vista

My VB6 has one form which uses the Microsoft DataGrid and the ADODC control to display an Access 2003 recordset to the screen.  Because the code must be portable,  I've used App.Path thruout to describe the path to the DB/recordset.  This also meant waiting until form/load to pass ConnectString and RecordSource info to the ADODC control.  All this works fine on XP, but when the exact same code is run under Vista, the data display fails with an error from 'Microsoft DataGrid' that "cannot initialize data bindings".   Does anyone know why this would happen under Vista and what would fix it?
SOLUTION
Avatar of sabrehagen
sabrehagen
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wjshore
wjshore

ASKER

saberhagen:
Thanks for your help and suggestions.  Alas, it hasn't worked.  The fact is, my app has 'App.Path' locations in 5  or 6 places.  But, only this one form with DataGrid and ADODC fails.  I should note, however, that I have no location literally called "My Documents".  I have 'Computer', Desktop, and 'Warren Shore' (my name).  The Warren Shore location has a sub-location called 'Documents'.  That's where I moved the app.  Warren Shore is the default Admin name (as assigned by Herr Redmond) because I'm allowed to give myself permission to use the computer under that name.  Any other thoughts?
1. Did you move it to the Documents sub folder in Warren Shore and try it there?

2. As an extreme last resort, if your program is not too big, you could take the forms from the project that isn't getting app.path, add them to a project that can get app.path, remove the original files from the project that can get app.path, and try and recompile. It may be an issue with the project files, or your project that can get app.path may have some links to windows libraries or other privelages that the project that can get app.path.

I hate the security in Vista, and honestly, because it is so knew, I would really only be stabbing in the dark!
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial