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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset returns Error 3709

Status
Not open for further replies.

the9thdoctor

IS-IT--Management
Sep 11, 2001
6
GB
The following code should generate a recordset, and (to test that the data is actually being picked up) returns the value from the LogNo field in a Message Box.

Set cnConnection = CurrentProject.Connection
Set rsCallsClosed = New ADODB.Recordset
rsCallsClosed.Open ("SELECT * FROM tblCALLHEADER ")
Do Until rsCallsClosed.EOF
MsgBox "Call number " & rsCallsClosed!LogNo
rsCallsClosed.MoveNext
Loop
rsCallsClosed.Close

The only problem I can think of is that the tables exist in a seperate database, although the database the code resides in uses Linked Tables to connect to another database. Mick Snowden
Systems Support Engineer
 
What version of MDAC are you using? I've run into numerous problems with Recordsets before I updated my MDAC from microsoft It might correct your problem or at least you will know it isn't a ADO problem.
 
Thanks, I'll try that. There are another couple of criteria that may affect it. The database the connection tables link to is part of a helpdesk system, that lives on a server at our other site. We only have a 64k link, which is shared by all 50 users at our site for data xfer between sites AND internet access. Could there be a timeout problem?
Mick Snowden
Systems Support Engineer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top