M
ma
Hello,
I am new in VBA for access. I copied a sample application from help
examples into the event for a button but it doesn't work.
The code is:
Private Sub Command0_Click()
Dim wrJet As Workspace
DefaultType = dbUseJet
' Create an unnamed Workspace object of the type
' specified by the DefaultType property of DBEngine
' (dbUseJet).
Set wrkJet = CreateWorkspace("", "admin", "")
End Sub
And the error is:
User defined type not defined. This means that it doesn't know the meaning
of workspace. What is the problem?
Best regards
I am new in VBA for access. I copied a sample application from help
examples into the event for a button but it doesn't work.
The code is:
Private Sub Command0_Click()
Dim wrJet As Workspace
DefaultType = dbUseJet
' Create an unnamed Workspace object of the type
' specified by the DefaultType property of DBEngine
' (dbUseJet).
Set wrkJet = CreateWorkspace("", "admin", "")
End Sub
And the error is:
User defined type not defined. This means that it doesn't know the meaning
of workspace. What is the problem?
Best regards