You need to call that Sub in a function. After you complete the function, then you need to create a macro that calls that function. Name the macro AutoExec.
When you start the MDB, the AutoExec will fire and call the function. The function will call the sub.
__________________
Greg Serrano
Michigan Dept. of Environmental Quality
Air Quality Division
|