Y
Yarik
Hi,
Now I am really perplexed: it looks like MS Access doesn't distinguish
classes when doing compile-time type checking...
For example, a code fragment like this
Public Sub DoSomethingWithForm(frm as Form)
End Sub
Public Sub Nuisance()
Call DoSomethingWithForm(CurrentProject.Connection)
End Sub
merrily compiles without a hitch. (In Visual Basic it would produce a
compile-time "Type mismatch" error.)
Is this a feature of MS Access VBA (or VBA in general)? Or is this a
bug? Or is this one of the possible two options??
Thank you,
Yarik.
Now I am really perplexed: it looks like MS Access doesn't distinguish
classes when doing compile-time type checking...
For example, a code fragment like this
Public Sub DoSomethingWithForm(frm as Form)
End Sub
Public Sub Nuisance()
Call DoSomethingWithForm(CurrentProject.Connection)
End Sub
merrily compiles without a hitch. (In Visual Basic it would produce a
compile-time "Type mismatch" error.)
Is this a feature of MS Access VBA (or VBA in general)? Or is this a
bug? Or is this one of the possible two options??
Thank you,
Yarik.