I think we are really close, and I think it's not working because of some references issue or just an Access quirk.
Looking at your example, mine is much the same. I have tried a few different things (most of my coding is trial and error anyway). I'll post first what I have and then what I have tried.
In the module behind my form (OTC_Entry):
Code:
Function SaveRecord()
WriteRecord
HandlecmdSave
End Function
My macro is just like yours...
It's named "AutoKeys"
The 'key' in question is "^M" or {F12}, I have tried both, alternatively.
The function is "SaveRecord()"
When I run this I get the error I mentioned in my confusing post above.
I have tried setting the AutoKeys macro to run another macro which in turn performs "run code", same result. I have tried making changes to my code, but that doesn't matter because I'm not even getting that far along...the macro claims it can't find the function let alone error on the code in the function.
I'm going to try saving, closing, repairing and compacting my DB once I return from lunch. Maybe the break will provide some inspiration. I'll post results.
Thanks again
-Dan