Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Project Load Error

Status
Not open for further replies.

realace112

Programmer
Jul 28, 2002
8
US
I'm trying to open a database programming .vbp project file and I get an error during loading. The name of the project is APA.vbp and contains only one form, APA.frm. When I load APA.vbp I get an error saying APA.frm could not be loaded. I attempted to open up APA.frm but what comes up is a module with ALL the code, including the code for all the objects and their properties like text boxes and command buttons. All I am trying to do is modify a subroutine and modify the GUI of the form, however I'm not able to access the form itself and when I try to modify the subroutine I get an error when I compile. The module starts out as this: VERSION 5#
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form APA
The error I get is at Version 5# - error: outside procedure
My collegue had sent me this project file and he says he is able to load up everything fine. He informed as long as I kept the .vbp, .frm, .exe and the Access .mdb in the same directory it should work fine. But every machine I try it on with VB 6 I get the same exact error. I'm have limited experience with VB so I could use anyone's assistance.
 
Replace

VERSION 5#
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"

with

VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top