I used this DAO syntax for years
Dim dbs as Database
Set dbs = CurrentDB
---------------------------
Now for the new ADODB
Dim cnn As ADODB.Connection
Set cnn = CurrentProject.Connection
DougP, MCP
Visit my WEB site to see how Bar-codes can help you be more productive
Dim dbs as Database
Set dbs = CurrentDB
---------------------------
Now for the new ADODB
Dim cnn As ADODB.Connection
Set cnn = CurrentProject.Connection
DougP, MCP
Visit my WEB site to see how Bar-codes can help you be more productive