Run-time error '-2146500594 (800f000e)': Method 'Item' of object 'Forms' failed
Hi all, I have received the above error message and unable to find out the cause of it. I hope somebody here can make a suggestion.
Here is the story. I am working on a laptop with Win 7 Pro x64. The Windows native Language is Chinese Traditional with supports for English and Simplified Chinese simultaneously. I have been working for weeks building a new database for my client. My client is running a Surface 3Pro with Win 10 in Chinese Simplified with supports for English. Both Access are identical 2007 SP3.
Last week, we started testing some of the basic functions and workflow. Then we got the above error message when we opened a form. The mechanism was to open a second form with a click of button in the first form. In the Mouse Up event of the button, I also specify how the properties of the some of the second forms' buttons and labels should behave. The code runs good in my laptop, but it does not work on my client's Surface3Pro. The debug highlighted this code and it looks like Access doesn't recognize "Forms!" in my client's computer.
DoCmd.OpenForm "frm_Input"
Forms!frm_Input.cmd_Print.Visible = False
I have been using this method for years and I have not experienced this error before. It is highly appreciate if somebody can give me a suggestion on where to look for a fix?