|
-
Jan 6th, 2000, 07:36 AM
#1
Thread Starter
Addicted Member
How can I search a database?
-
Jan 6th, 2000, 07:39 AM
#2
Addicted Member
Search the database for what ? What database format ? If record set could use SQL.
-
Jan 6th, 2000, 07:42 AM
#3
Thread Starter
Addicted Member
Im not used to databases. But i need to search for a certain record.
-
Jan 6th, 2000, 07:50 AM
#4
Addicted Member
Ok sorry support call came up
So if you are using access/sqlv6 or 7
In Declarations something like
Private db as database
Private rs as recordset
Private sSQL as string
Say a search command button
Private Command1_Click()
if a single record, searching for name smith
rs.findfirst("Name = 'Smith'")
if multple records
sSQL = "SELECT * FROM Customer WHERE Name = 'Smith'"
set rs = db.openrecordset(sSQL)
This will set the rs object to only Customer records where field Name = Smith
Hope it helps.
-
Jan 6th, 2000, 09:32 AM
#5
Addicted Member
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
|