Stockton.S
Nov 7th, 2000, 09:31 AM
I have a database in SQL which I can access through ADO perfectly fine but this database contains Images (OLE OBJECTS)
Officially, Microsoft says this about it in MSDN:
INFO: Issues Migrating from DAO/Jet to ADO/Jet
ID: Q225048
OLE Container Control
Many databases, including the SQL Server 7 Northwind database, contain pictures and other objects saved by Microsoft Access. In Visual Basic, you can see the pictures by binding the OLE Container control to the DAO Data control. However, the OLE Container control is not compatible with the ADO Data control and there is no way to access these pictures and display them using ADO. The OLE Container control cannot be used unbound because GetChunk does not retrieve the data in a format compatible with the ReadFromFile method.
Which is understandably since after all VB is a microsoft program.
But I am not sure how to connect to a DAO database and I cannot find any help out there.
Basically when connecting to the ADO database I cheated and connected an ADODB datasource to my database and then pointed my connection string to ADODB.connectionstring this works fine however I really need some help with the connecting to a database side of things with DAO.
My Database is called MAV-DB and is on server ENG_SERV1 and the table that I am after is Prod_Data_EPD
If anyone can help that would be much appreciated.
Many thanks
Simon
Officially, Microsoft says this about it in MSDN:
INFO: Issues Migrating from DAO/Jet to ADO/Jet
ID: Q225048
OLE Container Control
Many databases, including the SQL Server 7 Northwind database, contain pictures and other objects saved by Microsoft Access. In Visual Basic, you can see the pictures by binding the OLE Container control to the DAO Data control. However, the OLE Container control is not compatible with the ADO Data control and there is no way to access these pictures and display them using ADO. The OLE Container control cannot be used unbound because GetChunk does not retrieve the data in a format compatible with the ReadFromFile method.
Which is understandably since after all VB is a microsoft program.
But I am not sure how to connect to a DAO database and I cannot find any help out there.
Basically when connecting to the ADO database I cheated and connected an ADODB datasource to my database and then pointed my connection string to ADODB.connectionstring this works fine however I really need some help with the connecting to a database side of things with DAO.
My Database is called MAV-DB and is on server ENG_SERV1 and the table that I am after is Prod_Data_EPD
If anyone can help that would be much appreciated.
Many thanks
Simon