Datasheet
Designing Applications
47
7. The Project Explorer will open the module for us, and we can view the code it created:
8. You might be able to recognize that the line that does all the work is the one that starts
DoCmd.GoToRecord. Most of the rest is (necessary) padding and error handling code.
This technique is a useful learning tool and can help you to convert any existing macros
you may have into working code that you can use 'as is' or simply copy into your own
modules as you become more proficient with VBA.










