LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Function Sequence Error

Hi,
I have a VBA script that pulls data from Oracle Server and stores it in a
recordset. Here is part of the code:

Set RS = New ADODB.Recordset
Ssql1 = qryWeeklyEffRpt()
RS.Open Ssql1, oconn, adOpenKeyset

If RS.BOF = True And RS.EOF = True Then
GoTo 600
Exit Sub
Else
Do While RS.EOF = False
RS.MoveNext
m = m + 1
Loop
End If
RS.MoveFirst <========= (Function Sequence Error)

Sheet5.Cells(RowCounter, 2).CopyFromRecordset RS

Set RS = Nothing

This works fine at work on my laptop. But when I connect remotely using
VPN it errors out with the 'Function Sequence Error'. When debugged it
shows the error occurred at the statement shown above. This occurs whether
the recordset has one or more rows. Any help would be appreciated.

Thanks - Ravi

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
3D Function Error srpettew Excel Discussion (Misc queries) 2 April 18th 06 09:48 PM
Function Error Rhonda[_3_] Excel Programming 3 December 11th 03 05:34 PM
#Name error for VBA function William Ladd Excel Programming 1 October 9th 03 07:19 PM
Automate File Naming Function in sequence Steven North Excel Programming 0 July 30th 03 02:48 AM
Automate File Naming Function in sequence Steven North Excel Programming 0 July 30th 03 02:18 AM


All times are GMT +1. The time now is 01:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"