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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vba code conversion to vb!! for a dll

Status
Not open for further replies.

KingZ

Programmer
Jun 8, 2001
6
BE
How do I convert a VBA code with declarations like
'private mform as Access.form' into a syntax error-free vb code?

Problems also arise with Docmd commands!!!
I am trying to convert my vba code into a DLL file!
please help!
Thanx
Kingz
 
VBA and VB although primarily look the same but there are a lot of VBA functions that VB doesn't understand.
I don't know of an easy way to do this other than rewriting sections of the code.
Hopefully someone else will have an answer that's more to your liking.

Eradic8or
 
but how do I rewrite 'private mform as access.form'???
shall i send a part of the code?
 
I dont think you can do this, in VB the command would be

Private mForm as Form

However, I know that you can make use of existing access forms from within a VB application but the code is quite lengthy.

Eradic8or
 
If it is of no bother please copy+paste this 'lengthy' code! I need it badly! We're working with a huge program, all structured as classes and with declaration-code looking like this:
Option Compare Database
Option Explicit

Private mform As Access.Form
Private mFkt As Object
Private mC_Connect As Access.ComboBox
Private mCI_DBTyp As Access.ComboBox
Private mC_DBTyp As Access.ComboBox
Private mFSuch As Access.ComboBox
Private mK_AA As Access.ComboBox

I see no other alternative!!I don't have the faintest idea how I would re-write it!Do you?
If it helps, here a few details about the program:
each form has it's own class ! Most classes have objects which allow polymorphism to occur and the mFSuch(for example) is a combo which could be needed in another class!
Please help!
I appreciate your help
thanx
kingz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top