Web Development

General discussion


ODBC & Access 2000

By wdmeyer ·
How do I open a ODBC file in a VB module in Access 2000? I am using the following:

Dim cnn1 As ADODB.Connection
Dim rst1 As ADODB.Recordset
Set cnn1 = New ADODB.Connection
Set rst1 = New ADODB.Recordset
cnn1.Open "DSN=GP;USERID=lincabc;PASSWORD=xxxxx;"
rst1.Open "LINC.PROPDB_CUST", cnn1, adOpenDynamic, adLockReadOnly, adCmdTableDirect

I am unable to use any fields because BOF & Eof are true.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by john_wills In reply to ODBC & Access 2000

This isn't really an answer to your question, and may not be applicable to your situation. Link the ODBC table to your Access database. Address it then as though it were a table local to your database. When the table gts addressed there is an automatic pop-up asking for username and password.

Collapse -

by wdmeyer In reply to

Poster rated this answer.

Collapse -

by wdmeyer In reply to ODBC & Access 2000

This question was closed by the author

Related Discussions

Related Forums