While bill's code will do the trick, one question:
Do you open y.mdb from x.mdb....if so, in the code in x.mdb that opens y.mdb, add the following line after the line that opens y.mdb:
DoCmd.Quit
This will close the x.mdb database...after y.mdb has been opened.
****************************
Only two things are infinite, the universe and human stupidity,
and I'm not sure about the former. (Albert Einstein)
Robert L. Johnson III
MCSA, CNA, MCP, Network+, A+
w: robert.l.johnson.iii@citigroup.com
h: wildmage@tampabay.rr.com