Hi,
I installed a program on an NT machine, but get the above error when I attempt to open the program. Here is the situation:
1. When the user clicks on the program icon, a welcome screen appears prompting for a password. However, just before this prompt appears the odbc error message comes up. I click OK on the message box and get another message, Object variable or with block variable not set. I then enter the login info and Main Screen appears, but I am not able to access the database for the program.
2. I checked all the files that reference the path to the database. These include, the text file which is the first file the program checks, and the dsn files. In all cases, the path was set correctly.
3. That database is an Access 97 database.
4. The computer used to create the setup, cab and executable files runs Windows Millenium and VB 6.0.
5. I used the very same setup file to install this program on a Windows 2000 system. I got the odbc error also, but when I entered the correct path into the dsn's it worked perfectly.
Questions:
1. Any ideas what my problem could be? I thought missing .dll files could be involved, but I'm not sure. As I was installing I got several messages that certain dll files could not be copied because they were in use (eg. msvcrt.dll)
2. Will my program run sucessfully if I allow for all the files (including dlls) to be installed in my program's directory, instead of in Systems in Windows or System32 in Winnt?
Thanks
I installed a program on an NT machine, but get the above error when I attempt to open the program. Here is the situation:
1. When the user clicks on the program icon, a welcome screen appears prompting for a password. However, just before this prompt appears the odbc error message comes up. I click OK on the message box and get another message, Object variable or with block variable not set. I then enter the login info and Main Screen appears, but I am not able to access the database for the program.
2. I checked all the files that reference the path to the database. These include, the text file which is the first file the program checks, and the dsn files. In all cases, the path was set correctly.
3. That database is an Access 97 database.
4. The computer used to create the setup, cab and executable files runs Windows Millenium and VB 6.0.
5. I used the very same setup file to install this program on a Windows 2000 system. I got the odbc error also, but when I entered the correct path into the dsn's it worked perfectly.
Questions:
1. Any ideas what my problem could be? I thought missing .dll files could be involved, but I'm not sure. As I was installing I got several messages that certain dll files could not be copied because they were in use (eg. msvcrt.dll)
2. Will my program run sucessfully if I allow for all the files (including dlls) to be installed in my program's directory, instead of in Systems in Windows or System32 in Winnt?
Thanks