No. If you build a query, lets say "qrySomeQuery" then when designing the form you set the recordsouce to the query. The form will open bound to the query. Access creates a dao recordset for the form. But you can do it at any time and change the recordsource.
...
Me.recordsource = "qrySomeOtherQuery"
or even
dim strSql as string
strSql = "Select * from someQuery where ID = " & someValue
me.recordsource = strSql
Now if you have to get the recordset from the form once bound
dim rs as dao.recordset
'this method returns only a dao rs
set rs = me.recordset
Why do you think you need to return the forms recordset? What types of things do you want to do?
Yep thats it. If you set the recordsource property all of the binding takes place for you. You can return the recordset of the form if you need to do some data manipulation behind the scenes. See Chapter 8 especially 450 to 480.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.