I'm having a real problem with this script. I am trying to get a list of all the tables in a MDB file, but can't get it to work. If I run this code in VB6 it works perfectly, but if I try to execute just this step in a DTS package, I get "Object or provider is not capable of performing requested operation" on the OpenSchema line. If you can test this, all you need is a data.mdb file on your C drive. Can someone try this in a DTS step and tell me if it works for you? Or maybe why it isn't working for me?Function Main() Dim con, rec Dim strSQL, strFile Set con = CreateObject("ADODB.Connection") Set rec = CreateObject("ADODB.Recordset") strFile = "C:\data.mdb" strSQL = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + strFile con.Open strSQL Set rec = con.OpenSchema(adSchemaTables, Array(Empty, Empty, Empty, "Table")) Do While Not rec.EOF MsgBox rec.Fields("TABLE_NAME").Value rec.MoveNext LoopEnd Function