I have a VB6 project created on Windows98 machine and worked just fine. Using VB Package and Deployment Wizard I created an installation program and strated testing it on Win2K. I installed it on Win2K with no problem,but when running the application got the following error "Myapplicname.exe has generated errors and will be closed by windows. You will need to restart the program." After spending some time with trying to figure out
what is wrong, I decided to install VB on the machine and compile the project on this machine. But the project is not compiling giving me the same error message (only vb.exe instead of my applic. name) and pointing
to the following peace of code:
Global gAssetdb As dao.Database
Global Budgetdetail As dao.Recordset
Global gAssetdbpath As String
Global gAccessVersion As String
Global sqlstmt As String
....
Set BudgetDset = gAssetdb.OpenRecordset(sqlstmt, dbOpenDynaset)
frmMonthly!Data1.DatabaseName = gAssetdbpath
frmMonthly!Data1.Connect = gAccessVersion
frmMonthly!Data1.RecordSource = sqlstmt
frmMonthly!grid3.Visible = True
.....
BudgetDset.Requery
Set frmMonthly!Data1.Recordset = BudgetDset
frmMonthly!Data1.UpdateControls
....
frmMonthly!grid3.Refresh
BudgetDset.MoveLast
....
BudgetDset.MoveFirst
Do While Not BudgetDset.EOF
....
BudgetDset.MoveNext
Loop
Error happens on BudgetDset.MoveNext. DAO 3.6 is used to connect to Access2000 database. There is no "missing" shown in reference list. Nothing is installed on the machine except Win2K and Excell2000. I downloaded all critical updates and service pack for Win2K and the ServicePack5 for Visual Studio. And another miracle: if I install Novel
Client on this machine, the error message disappears and application works just fine, I uninstall it and get the message and problem back. The users are not going to have Novel installed. PLEASE HELP ME!!! I am new in VB.
what is wrong, I decided to install VB on the machine and compile the project on this machine. But the project is not compiling giving me the same error message (only vb.exe instead of my applic. name) and pointing
to the following peace of code:
Global gAssetdb As dao.Database
Global Budgetdetail As dao.Recordset
Global gAssetdbpath As String
Global gAccessVersion As String
Global sqlstmt As String
....
Set BudgetDset = gAssetdb.OpenRecordset(sqlstmt, dbOpenDynaset)
frmMonthly!Data1.DatabaseName = gAssetdbpath
frmMonthly!Data1.Connect = gAccessVersion
frmMonthly!Data1.RecordSource = sqlstmt
frmMonthly!grid3.Visible = True
.....
BudgetDset.Requery
Set frmMonthly!Data1.Recordset = BudgetDset
frmMonthly!Data1.UpdateControls
....
frmMonthly!grid3.Refresh
BudgetDset.MoveLast
....
BudgetDset.MoveFirst
Do While Not BudgetDset.EOF
....
BudgetDset.MoveNext
Loop
Error happens on BudgetDset.MoveNext. DAO 3.6 is used to connect to Access2000 database. There is no "missing" shown in reference list. Nothing is installed on the machine except Win2K and Excell2000. I downloaded all critical updates and service pack for Win2K and the ServicePack5 for Visual Studio. And another miracle: if I install Novel
Client on this machine, the error message disappears and application works just fine, I uninstall it and get the message and problem back. The users are not going to have Novel installed. PLEASE HELP ME!!! I am new in VB.