Hi
I am trying to open a .mdb with ADO using long file names.
How do I connect to "Deposits 2012.mdb" and open the table "tblDeposits 2012"?
I have tried various forms of apostrophe's but I am unable to connect.
TIA
David
I am trying to open a .mdb with ADO using long file names.
How do I connect to "Deposits 2012.mdb" and open the table "tblDeposits 2012"?
 local  cStr := "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + cFilePath( hb_argv( 0 ) ) + ;
   "deposits 2012.mdb;User Id=;Password=;"
  oConx := TOleAuto():new( "ADODB.connection" )
  oConx:ConnectionString := cStr
  oConx:Open()
  oRSet := TOleAuto():New( "ADODB.RecordSet" )
  With Object oRSet
   :CursorLocation  := adUseClient
   :CursorType    := adOpenDynamic
   :LockType     := adLockOptimistic
   :ActiveConnection := oConx
   :Source      := "SELECT * FROM tblDeposits 2012"
   :Open()
   :Sort       := :Fields( 0 ):Name
  End WithI have tried various forms of apostrophe's but I am unable to connect.
TIA
David