Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Recordset Searches

I have created a connection using a DSN and then Opened a recordset.

The queries is running fine, but I have lost the ability to .FINDFIRST or
..FINDNEXT

What else can I use? I have written a loop to test for my condition, but it
is not running nearly as fast when i was able to .FINDXXX

Any thoughts?

Thank you,
Jim
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Recordset Searches

What kind of cursor are you using?

--
Tim Williams
Palo Alto, CA


"James McDowell" wrote in message
...
I have created a connection using a DSN and then Opened a recordset.

The queries is running fine, but I have lost the ability to .FINDFIRST or
.FINDNEXT

What else can I use? I have written a loop to test for my condition, but it
is not running nearly as fast when i was able to .FINDXXX

Any thoughts?

Thank you,
Jim



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Recordset Searches

Can you elaborate on what you mean by lost the ability to .FINDFIRST? Do
you get an error message? Does nothing happen? Can you provide more of your
code and show what line the error occurs on (if you are getting an error
message)?
Paul D

"James McDowell" wrote in message
...
: I have created a connection using a DSN and then Opened a recordset.
:
: The queries is running fine, but I have lost the ability to .FINDFIRST or
: .FINDNEXT
:
: What else can I use? I have written a loop to test for my condition, but
it
: is not running nearly as fast when i was able to .FINDXXX
:
: Any thoughts?
:
: Thank you,
: Jim


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Recordset Searches

Set SALES_rcd = conSQl.OpenRecordset(Sales_sql, dbOpenSnapshot)

With SALES_rcd
myfind = "LOT = '" & ActiveCell.Value & "'"
Debug.Print .RecordCount

.FindFirst myfind

End With

I get a Run Time error message 3251 that says "Operation is not supported
for this type of Object"

"PaulD" wrote:

Can you elaborate on what you mean by lost the ability to .FINDFIRST? Do
you get an error message? Does nothing happen? Can you provide more of your
code and show what line the error occurs on (if you are getting an error
message)?
Paul D

"James McDowell" wrote in message
...
: I have created a connection using a DSN and then Opened a recordset.
:
: The queries is running fine, but I have lost the ability to .FINDFIRST or
: .FINDNEXT
:
: What else can I use? I have written a loop to test for my condition, but
it
: is not running nearly as fast when i was able to .FINDXXX
:
: Any thoughts?
:
: Thank you,
: Jim



Reply
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
Vlookup with two searches Jack Excel Discussion (Misc queries) 4 August 5th 08 05:41 PM
Getting valid web searches and avoiding sites that contaminate web searches David McRitchie New Users to Excel 1 June 13th 06 03:00 AM
Searches peterrump Excel Worksheet Functions 4 May 23rd 05 09:02 PM
Type recordset/recordset? FlaviusFlav[_9_] Excel Programming 4 May 24th 04 12:16 PM
VBA and file searches Ron de Bruin Excel Programming 0 May 10th 04 10:05 PM


All times are GMT +1. The time now is 07:10 PM.

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

About Us

"It's about Microsoft Excel"