The problem is not using it in VBA, it is that it cannot be run while you are looking at the code.
If the code page is open(you can actualy see the code as it is running), it runs the code and stops at the GoToRecord line for that message error.
Maybe it does this for another reason, but I know that it displays that same message when you run the code while the code page is open.
If one of these is true:
*you use a breakpoint
*you run the code from the code page instead of from a form
*the code page is still open while you work in your forms
Then, you could close the code page before you run the form or, in the case of the breakpoint (Big black dot in the left margin of the code page), put that breakpoint one line underneath the GoToRecord line or just erase it (click on it).
Newman