Looks okay to me Bill, presuming that's a standard module rather than a form/report module. What error do you get, just "can't find..."?
Does it compile? I'm wondering whether there are 2 functions with the same name. If not, can you attach the db here?
Only one instance of "Public Function MedTimes()" and the DB compiles. However, Compress and Repair produce the same error. I have to leave for a bit, but when I get back I will rebuild the DB piece-meal to see if I just have a corrupted DB. Happens sometimes with cut/paste of code and or modules.
The Runcode should be =MedTimes()
note the =
Far be it for me to question my elders, but here's one of my production macros that has run successfully for about 12 years or so.
I created a new DB and copied the modules, queries and macros plus the backend links. So, as I somewhat expected, I was dealing with some level of corruption within the DB causing the issue. One has to remain astute when using copy/paste within Access, especially code and controls.
Thanks,
Bill
Well, that's a surprise. Turns out it works either way for me.but here's one of my production macros that has run successfully for about 12 years or so.