General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Just an idea how to read a data from MDB to VFP. Next step (from VFP to SQL) should be easy.
LOCAL oRS as ADODB.Recordset
LOCAL oConn AS adodb.Connection
lcConn=[Provider=Microsoft.Jet.OLEDB.4.0;] +;
[Data Source=\\Conseqdbs\Data\Access\Contrade\Contrade.mdb; ]+;
[Jet OLEDB:Database Password=xxxxx;]+;
[Jet OLEDB:System Database=s:\Conseq1.mdw;] +;
[User Id=user;Password=yyyyy]
oConn = NEWOBJECT("adodb.connection")
WITH oConn
.ConnectionString=(lcConn)
ENDWITH
oConn.Open
oRS = oConn.Execute("SELECT [Clearing účet Journal New].CSORTKEY, [Clearing účet Journal New].SETTLEDATE FROM [Clearing účet Journal New];")
oRS.Fields("settledate").Value
bye
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only