Yeah....
The problem is with Jet OLEDB Engine Type.
The value must be 5 instead of 4 since i am using
Microsoft.Jet.OLEDB.4.0 engine.
The CompactDatabase statement must be like
jet->CompactDatabase("Provider=Microsoft.Jet.OLEDB.4.0;Data...
Yeah....
The problem is with Jet OLEDB Engine Type.
The value must be 5 instead of 4 since i am using
Microsoft.Jet.OLEDB.4.0 engine.
The CompactDatabase statement must be like
jet->CompactDatabase("Provider=Microsoft.Jet.OLEDB.4.0;Data...
I am trying to compact a MS-Access database using the follwing piece of code which is in Visual C++/JRO :
try
{
CoInitialize(NULL);
IJetEnginePtr jet(__uuidof(JetEngine));
jet->CompactDatabase("Provider=Microsoft.Jet.OLEDB.4.0;Data...
I am trying to compact a MS-Access database using the follwing piece of code :
try
{
CoInitialize(NULL);
IJetEnginePtr jet(__uuidof(JetEngine));
jet->CompactDatabase("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=nSamp.mdb","Provider=Microsoft.Jet.OLEDB.4.0;Data...
Pls try this.....
Dim cn as ADODB.Connection;
cn.open("apple.mdb")
sql = "SELECT oldTable.* INTO newTable IN 'banana.mdb' FROM oldTable"
cn.execute(sql);
Use ADO, which has been recommended by Microsoft to deal with databases from Front-Ends.
You can use
_ConnectionPtr,
_RecordsetPtr.
Please check this tutorial which will be very useful for you getting an Idea about ADO.
http://codeguru.earthweb.com/mfc_database/Ado_Aok.shtml
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.