Hello to the team again.
When I'm Using excel VBA to load sql server 2005 express data from tables that populate manually, with Management Studio Express. It works fine.
When I added new DB and populate it with my tables from access, using ODBC. it's not work.
I 'm getting an error "invalid object name 'dbo.Items' (my table from access).
Please advice.
Thank you,
Yalon
strConn = "PROVIDER=SQLOLEDB;"
strConn = strConn & "DATA SOURCE=LepTop-2\SQLExPRESS
strConn = strConn & "Initial Catalog=WizPlan.V6;"
strConn = strConn & "Trusted_Connection=Yes;"
Dim DBcn As ADODB.Connection
Set DBcn = New ADODB.Connection
DBcn.Open strConn
sSQL = ""
sSQL = sSQL & "SELECT * FROM bdo.Items;"
Dim rst As ADODB.Recordset
Set rst = DBcn.Execute(sSQL)