database - SQL request in VBA run time error -


i know there number of threads related this. however, none of them seemed solve problem. putting down exact problem here. can me this?

i want execute simple sql query on excel sheet macro seem no recognize datatable object although defined in spreasheet name "tabl11"

here code using in macro:

sub jointables()   dim cn adodb.connection  set cn = new adodb.connection    dim strmystring string   cn      .provider = "microsoft.ace.oledb.12.0"      .connectionstring = "data source=" & thisworkbook.fullname & ";" & _          "extended properties=excel 8.0"      .open   end   dim rs adodb.recordset  set rs = new adodb.recordset   strmystring = "65544397"   dim sqlstring string  sqlstring = "select * [tabl11]"  rs.open sqlstring, cn    worksheets("sheet3")      .cells(2, 1).copyfromrecordset rs  end      enter code here   rs.close  cn.close   end sub 

i run time error: 2147217865 (80040e37)

which saying: microsoft access database engine not find object 'tabe11'. make sur object exist ect ect.

should have define entire path of datatable?


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -