I still don't fully grasp the dot and bang notation myself
! provides late bound access to the default property of a control by passing the word (name) following ! as the .Name argument. The ONLY place I can think of that I would use ! is with recordsets. If I want late bound Access, I probably wouldn't Dim the object using the specific library (e.g. use As Object instead). An invalid reference (e.g. Me!txtReciept instead of Me.Receipt) will not compile and will fail at run time.
The error is probably a missing reference as you say, but I think that would be for the Scripting. Probably Microsoft Scripting Runtime
Last edited by Micron; 01-04-2021 at 02:08 PM.
Reason: clarification
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.