M
March
Hello,
Anyone know about sub main( ) VBA in MS Access. I used to write some code
on VB6. I wrote
Option Explicit
Global db as database
Sub main( )
source = "C:\<filename>.mdb"
share = false
Set db = dbengine.workspaces(0).opendatabase(source, share)
<formname>.show
End Sub
above I could use "db" anywhere in my application.
Any idea to declare the "Global" in VBA.
I try to covert the source code to vba. I know that may have some
differences from VB6.
Also, I try to find reference websites.
If anyone have ideas, please give me suggestion.
Anyone know about sub main( ) VBA in MS Access. I used to write some code
on VB6. I wrote
Option Explicit
Global db as database
Sub main( )
source = "C:\<filename>.mdb"
share = false
Set db = dbengine.workspaces(0).opendatabase(source, share)
<formname>.show
End Sub
above I could use "db" anywhere in my application.
Any idea to declare the "Global" in VBA.
I try to covert the source code to vba. I know that may have some
differences from VB6.
Also, I try to find reference websites.
If anyone have ideas, please give me suggestion.