How to access MDB database for TeeChart for .NET
Posted: Tue Jul 21, 2009 9:37 am
I have just installed the TeeChart.NET and try to evaluate an application from program in Visual Studio 2008.
Is it possible to connect to Access MDB DB direct from the data binding properties GUI interface and not by code like that?
'Connect to database
Set Conn = Server.CreateObject("ADODB.Connection")
Set RSt = Server.CreateObject("ADODB.RecordSet")
db = "TrueGas.mdb"
strConn = "DBQ="+server.mappath(db)+";DefaultDir=;DRIVER={Microsoft Access
Driver (*.mdb)};"
Conn.Open strConn
strSql = "select * from OnLineGas where tname='TM8#1' order by SAMPLEDT ASC"
Rst.Open strsql, Conn, 1, 3
Thanks
Hovav Talpaz
Is it possible to connect to Access MDB DB direct from the data binding properties GUI interface and not by code like that?
'Connect to database
Set Conn = Server.CreateObject("ADODB.Connection")
Set RSt = Server.CreateObject("ADODB.RecordSet")
db = "TrueGas.mdb"
strConn = "DBQ="+server.mappath(db)+";DefaultDir=;DRIVER={Microsoft Access
Driver (*.mdb)};"
Conn.Open strConn
strSql = "select * from OnLineGas where tname='TM8#1' order by SAMPLEDT ASC"
Rst.Open strsql, Conn, 1, 3
Thanks
Hovav Talpaz