Hi Brian
thanks for the posting. I've done as you suggested, but rather than having the runtime error on the last one in the list MyCorrData, I now have it on the first MySSTab. I think this is something to do with the use of ADO in recordsets, see:
http://p2p.wrox.com/topic.asp?TOPIC_...+type+mismatch
I've reconfigured it to
Dim Cnn1 As ADODB.Connection
Set Cnn1 = CurrentProject.Connection
Set MyCoListing = New ADODB.Recordset 'Open Table with Co's
Set MyCorrCos = New ADODB.Recordset 'Open Table with Co's
Set MyCorrData = New ADODB.Recordset
Set RetRS = New ADODB.Recordset
MyCoListing.Open "Correl_Cos", Cnn1, , , adCmdTable 'Open Table
MyCorrCos.Open "Correl_Cos", Cnn1, , , adCmdTable 'Open Table
MyCorrData.Open "CorrelCoef", Cnn1, , , adCmdTable 'Open Table
I'm currently struggling with the line
MySQLSt = "SELECT FieldX etc.. My Query string"
Set RetRS = MyDb.OpenRecordset(MySQLSt)
which produces an error 424: Object Required. If you have any thoughts about this I'd be most grateful
Thanks
Andrew