[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?Thanks,
Rob
[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?
CREATE Connection OF ADODB
HANDLE IN hConnection.
Create Recordset OF ADODB
HANDLE IN hRecordset.
STRING "Driver={Microsoft Access Driver (*.mdb)};"
"Dbq=apiv2db.mdb;"
"DefaultDir=F:\\APIV2\\DocExamples\\MSADO;"
"ReadOnly=False"
DELIMITED BY SIZE INTO ConnStr.
MODIFY hConnection @Open(ConnStr).
INQUIRE hConnection State IN WS-ConnStat.
IF WS-ConnStat NOT = adStateOpen
GO TO MAIN-900
END-IF.
* This variant uses the connection as a basis for the selection
* MODIFY hConnection Execute("Select * from Contacts",
* WS-RecCount, adCmdText)
* GIVING hRecordset.
MODIFY hRecordset MaxRecords = 100.
MODIFY hRecordset @Open(
BY NAME Source
"Select * FROM Contacts ORDER BY LastName",
BY NAME ActiveConnection hConnection,
BY NAME Options adCmdText).
MODIFY hRecordset MoveFirst().
INQUIRE hRecordset EOF IN WS-ConnStat.
PERFORM UNTIL WS-ConnStat = -1
INQUIRE hRecordSet
fields::item("FirstName")::value
IN WS-First
fields::item("LastName")::value
IN WS-Last
INITIALIZE WS-String
STRING WS-Last DELIMITED BY SPACE
", " DELIMITED BY SIZE
WS-First DELIMITED BY SPACE
INTO WS-String
DISPLAY WS-String(1:62)
IF WS-ConnStat NOT = -1
MODIFY hRecordset MoveNext()
END-IF
INQUIRE hRecordset EOF IN WS-ConnStat
END-PERFORM.
ACCEPT OMITTED.
MODIFY hRecordset @Close().
MODIFY hConnection @Close().
MAIN-900.
*Finish up.
DESTROY hRecordset.
DESTROY hConnection.
GOBACK.
[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?[Migrated content. Thread originally posted on 01 September 2006]
Has anyone attempted to use Microsoft's ADODB to access information? Anyone made it work? If so, would you be willing to share an example of how you did this?




Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
OKSorry, our virus scanner detected that this file isn't safe to download.
OK