Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't Retrieve Data

Status
Not open for further replies.

BigCatMCS

Programmer
Apr 29, 2004
57
US

I'm trying to retrieve data from an Access database. For some reason, I am unable to do so. What is wrong w/ the following code?

Private Sub Adodc1_WillMove(ByVal adReason As ADODB.EventReasonEnum, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
Dim cn As New ADODB.Connection, rs As New ADODB.Recordset
cn.ConnectionTimeout = 5
cn.Open "C:\Program Files\Seagate Software\Crystal Reports\Samples\Databases\xtreme.mdb"
Set rs.Open = cn
rs.Open "Select * From Customer", , , , adCmtText
Text1.Text = rs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top