[tt]Rec.Open "SELECT JN from Projects Where JN ='" & Job & "'", _
currentproject.connection[/tt]
Which should give you a readonly, forwardonly recordset.
Check the help files on the open method, the appropriate cursor and locktype, and/or search these fora, there are lot of threads containing methods of opening recordsets.
Also perhaps have a look at faq181-2886 on how to get the most out of the membership. This is the query and sql forum, the question might perhaps be better addressed in forum705 (Access VBA)
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.