xPROVIDER := "Microsoft.Jet.OLEDB.4.0"
xSOURCE := "\\10.1.0.0\share\folder\Your.mdb" // use your IP address
xPASSWORD := "whatever"
xString := 'Provider='+xPROVIDER+';Data Source='+xSOURCE+';Jet OLEDB:Database Password='+xPASSWORD
// global connection string
oCn := CREATEOBJECT( "ADODB.Connection" )
TRY
oCn:Open( xString )
CATCH oErr
Saying := "Could not open a Global Connection to Database "+xSource
MsgInfo( Saying )
RETURN(.F.)
END TRY
James Bott wrote:Thanks, Enrico. That was my fear. Although you can write data, if you can't update indexes, it seems that using ADO has little value except for reading data.
James
Gale FORd wrote:I think it depends on the driver. I know the jet engine can update dbf index files. If you have Advanced Database Server you can also provide remote access via ODBC client or OLE DB client for ADO.
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\folder;
Extended Properties=dBASE IV;User ID=Admin;
Driver={Microsoft dBase Driver (*.dbf)};datasource=dBase Files;
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 85 guests