Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

SQL Query with joined tables

$
0
0

Hello to you all,

I wonder, if there's anyone who can give me answer on the question if a SQL query with joined tables does work with adodb and the "open" command

 

 

Underneath will work

 

Local $oRS
Local $oConn

$oConn = ObjCreate("ADODB.Connection")
$oRS = ObjCreate("ADODB.Recordset")
$oConn.Open("Driver={Microsoft Access Driver (*.mdb)};Dbq=c:\files\data.mdb ;pwd="")
$SQLt_Orders= "SELECT t_Orders.n_OrderNum, t_Orders.OrderDate, t_Orders.n_OrderStatus, t_Orders.n_TotalPrice, t_Orders.n_OrderPriceNet FROM t_Orders"

 

But if i'm joining fields from another table, I cant get it working in autoit, the sql statement is working properly in access.

Do I need to open all joined tables or do I need to simplify my SQL statement and join tables in auto IT?

 

 

Many thanks in advance

 

Klassieker

 

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>