Certainly, just use the Workbook_Open() event to run your SQL code.
E.g.,
Private Sub Workbook_Open()
' Insert code to run SQL here
End Sub
---
Mark Bigelow
mjbigelow at hotmail dot com
http://hm.imperialoiltx.com
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!