I
Ivan Debono
Hi all,
I'm trying to create a transform query with vb6 and ado 2.8. I'm basically
doing the following:
'Create catalog connection
Set oCat = New ADOX.Catalog
oCat.ActiveConnection = dll_ado.Connection
'Create command object
Set oCmd = New ADODB.Command
oCmd.CommandText = sSQL
'Add view to catalog
oCat.Views.Append sName, oCmd
But I get the error: Syntax error in Transform statement
If I add teh query using Access it works fine. It doesn't want to be added
when I do it through ADO.
Any ideas?
Thanks,
Ivan
I'm trying to create a transform query with vb6 and ado 2.8. I'm basically
doing the following:
'Create catalog connection
Set oCat = New ADOX.Catalog
oCat.ActiveConnection = dll_ado.Connection
'Create command object
Set oCmd = New ADODB.Command
oCmd.CommandText = sSQL
'Add view to catalog
oCat.Views.Append sName, oCmd
But I get the error: Syntax error in Transform statement
If I add teh query using Access it works fine. It doesn't want to be added
when I do it through ADO.
Any ideas?
Thanks,
Ivan