A
Angus
I got a malformed GUID error message when running following code, which
extract data from Access database and copy to Excel spreadsheet. The bug
comes up at rs.Data.Open szSQL, szConnect about the where clause, which I
copy from MS query.
Dim objConn As ADODB.Connection
Dim rsData As ADODB.Recordset
szSQL = "SELECT db.ID, db.Market" _
& " WHERE (db.First_order_month={ts '2007-08-01 00:00:00'})"
Set rsData = New ADODB.Recordset
rsData.Open szSQL, szConnect
szConnect = "Provider=Microsoft.Jet.OLEDB.4.0; " & _
"Data Source=C:\database.mdb;"
Set rsData = Nothing
extract data from Access database and copy to Excel spreadsheet. The bug
comes up at rs.Data.Open szSQL, szConnect about the where clause, which I
copy from MS query.
Dim objConn As ADODB.Connection
Dim rsData As ADODB.Recordset
szSQL = "SELECT db.ID, db.Market" _
& " WHERE (db.First_order_month={ts '2007-08-01 00:00:00'})"
Set rsData = New ADODB.Recordset
rsData.Open szSQL, szConnect
szConnect = "Provider=Microsoft.Jet.OLEDB.4.0; " & _
"Data Source=C:\database.mdb;"
Set rsData = Nothing