M
Michel
Hi I've a function in a module and I'd like to pass the me parameter of a
form
Call MyFunc(Me)
PublicSub MyFunc(myMe)
debug.print(myMe.CurrentRecord)
End Sub
If I do this I've an error
Object doesn't support this property or method
Is there a way of doing it?
I know that I can do
Call MyFunc(Me.name)
PublicSub MyFunc(name As String)
debug.print(Forms(name).CurrentRecord)
End Sub
But is it possible to pass directly the me?
Michel
form
Call MyFunc(Me)
PublicSub MyFunc(myMe)
debug.print(myMe.CurrentRecord)
End Sub
If I do this I've an error
Object doesn't support this property or method
Is there a way of doing it?
I know that I can do
Call MyFunc(Me.name)
PublicSub MyFunc(name As String)
debug.print(Forms(name).CurrentRecord)
End Sub
But is it possible to pass directly the me?
Michel