DBEngine in Form's macro

A

Alan T

I have several sub functions in my form's macro page, some of the sub
function has the following codes:
Dim myDB As Database
myDB = DBEngine.Workspaces(0).Databases(0)

Can I have these codes in more than one sub function?
 
S

Steve Schapel

Alan,

This is not a macro. This is part of a VBA procedure. And yes, you can
use this code within more than one procedure.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top