•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 426,333 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,413 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 7509 | Replies: 5
•
•
Join Date: Nov 2005
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
ive made a program that links into an access 2000db.
ive written the code for the find button as
And i keep getting Runtime Error ''
Operation is not supported for this type of object.
And when i debug
Data1.Recordset.FindFirst "Name like '%" & x & "%'"
Is highlighted.
Ive tried using ADO but then i can only display the results in a grid and i use sql then. Why wont this code work? Is it wrong or am i missing a refrence of component?
Thank you
ive written the code for the find button as
Private Sub cmdFind_Click()
Dim x As String
x = InputBox("Input the first few characters of the Company Name ", "Find on Name")
Data1.Recordset.FindFirst "Name like '%" & x & "%'"
cmdFind_ok:
Exit Sub
cmdFind_Error:
Dim y As String
y = "Error " & Err.Number & ": " & Error(Err.Number)
MsgBox y, 48, "Find On Company Name"
Resume cmdFind_ok
End SubAnd i keep getting Runtime Error ''
Operation is not supported for this type of object.
And when i debug
Data1.Recordset.FindFirst "Name like '%" & x & "%'"
Is highlighted.
Ive tried using ADO but then i can only display the results in a grid and i use sql then. Why wont this code work? Is it wrong or am i missing a refrence of component?
Thank you
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Forms in Random access files (Visual Basic 4 / 5 / 6)
- Using recordsets in VB6 with access (Visual Basic 4 / 5 / 6)
- Giving records in MS Access unique numbers (MS Access and FileMaker Pro)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: how to publish?
- Next Thread: Getting into a locked-down MS Access mdb file



Threaded Mode