|
-
Sep 27th, 2000, 06:37 PM
#1
Thread Starter
Lively Member
I keep getting run time error 3251(Operation
is not supported for this type of object) with
.FindFirst, .FindLast, ...
example:
With rstCustomer
.FindFirst strID
End With
0101011001000010
01101111011011100110110001101001011011100110010101110010
-
Sep 27th, 2000, 06:42 PM
#2
_______
<?>
Code:
Dim strSql1 As String
strSql1 = "SELECT *, LName & ', ' & FName as FullName FROM Phone order by lname;"
datName.RecordSource = strSql1
datName.Refresh
'strFindme = whatever you look for
strFindMe = DBCombo1.Text
strFindMeName = the fieldname to seache in and what to find
strFindMeName = "fullname = '" & strFindMe & "'"
'
datName.Recordset.FindFirst strFindMeName
FindLast uses the same stuff...
datName.Recordset.FindLast strFindMeName
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 27th, 2000, 07:07 PM
#3
The type of error you describe is usually due to opening the recordset as a "table" rather than as a "dynaset" or "snapshot". The "Find" methods only work with the latter two. For table-type recordsets, you need to use "Seek".
"It's cold gin time again ..."
Check out my website here.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|