astraltango, have you read FAQ222-2244 yet?
With most all data access the process works (very) generally like this ...
Open Connection To Database
Open Recordset Based Upon Which Connection?
So to answer your question the "cnMyDB" is probably the connection to the database. You can tell this by two things. The object variable "cnMyDB" has the prefix of "cn" (cn = connection), and by where it is used in the code. If you look at my very general example you will see "Open Recordset Based Upon Which Connection?" (Set rsMyValue = cnMyDB.Execute("...
And yes you will need to have a connection to your data source even if it is access.
Now, to store a value retrieved from the database you would use something like...
MyStringVariable = MyRecordSetObject.Fields("MyFieldName"

or
MyStringVariable = MyRecordSetObject.Fields("MyFieldName"

.Value
Good Luck