isladogs
Access MVP / VIP
- Local time
- Today, 22:12
- Joined
- Jan 14, 2017
- Messages
- 19,382
I remember reading somewhere that if you name your message box function MsgBox, it will be used instead of the built-in function. The reason is that VBA modules are search before built-in.
That is correct. It was mentioned in the Access Europe meeting led by Neil Sargent on Wed 7 Jan and is also covered in the articles linked in my last reply.
The same applies to any built-in function - it can be 'overwritten' by your own custom function as Access will always use the custom function by default.
For this to work successfully on existing code, the custom function must have the same arguments of the built-in version and in the same order.
Hence also my comments in point 1 of post #39 of this lengthy thread.