I'm new to Access VBA so bare with me 
I bought a book on Access Development and there is some code (working with Recordsets) that I want to put into my Access database.
To add this code I click on Modules from the main window, start typing:
Public sub myfunctionname()
Dim rsLeads as
Then right after typing "rsLeads as" I get an error message that says "the form name "form1" is misspelled or refers to a form that doesn't exist"
No matter how I try to start typing this function I get that error message. It's my first time typing code like this in Access -- what am I doing wrong?
I bought a book on Access Development and there is some code (working with Recordsets) that I want to put into my Access database.
To add this code I click on Modules from the main window, start typing:
Public sub myfunctionname()
Dim rsLeads as
Then right after typing "rsLeads as" I get an error message that says "the form name "form1" is misspelled or refers to a form that doesn't exist"
No matter how I try to start typing this function I get that error message. It's my first time typing code like this in Access -- what am I doing wrong?