|
-
August 21st, 2001, 06:20 PM
#1
Urgent - Searching ADO Recordssets
How do I create a search ado record facility on my forms?
Can anyone help, Please...
Thanx
F. T. W.
-
August 21st, 2001, 06:54 PM
#2
Re: Urgent - Searching ADO Recordssets
Hello:
If I understand what you mean, you can use this program which will allow an user can input thier column and data to be searched.
[\vbcode]
Adodc1.RecordSource = "Select " & Text3.Text & _
" from " & Text4.Text & _
" WHERE " & Text5.Text & "=" & Text6.Text
Adodc1.Refresh
[/vbcode]
Good Luck
-
August 22nd, 2001, 08:47 AM
#3
Re: Urgent - Searching ADO Recordssets
Hi Robert. I haven't made use of the adodc control, I've selected the Ado Code Option on the DataForm Wizard, how can I do it without the adodc control?
Thanx
Hannes
F. T. W.
-
August 22nd, 2001, 11:41 AM
#4
Re: Urgent - Searching ADO Recordssets
sSQL = "select * from Table where Field = YourCriteria"
rs.Open sSQL, adOpenDynamic, adLockOptimistic
now recordset contains your search criteria and you can do whatever you want with it.
Iouri Boutchkine
[email protected]
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
|