Use the Public statement to declare the db variable in the module section. Add new module to your project and place

Public db As Database

Variables declared using the Public statement are available to all procedures in all modules. You can open a database in any form.

------------------
smalig
[email protected]
http://vbcode.webhostme.com/