|
-
Feb 16th, 2006, 10:55 AM
#1
Thread Starter
Member
Searching Databases
i have one textbox,one button, and one MSHFlex Grid, and another is ADOControl1 in my form
the question is:
how can I find the employee number in my database from the number inputted from the textbox????
what is the code for that?
-
Feb 16th, 2006, 11:11 AM
#2
Hyperactive Member
Re: Searching Databases
on the command button
adodc1.recordsource="select * from table1 where employee_number=' " & text1.text &" ' "
adodc1.refresh
-
Feb 16th, 2006, 11:15 AM
#3
Thread Starter
Member
Re: Searching Databases
after I select that??? I will display that on the FlexGrid??? so how will I bind that???
-
Feb 16th, 2006, 11:20 AM
#4
Hyperactive Member
Re: Searching Databases
set flexgrid1.datasource = adodc1
or on the property window of the flexgrid set the datasource to adodc1
-
Feb 16th, 2006, 11:24 AM
#5
Thread Starter
Member
Re: Searching Databases
how about to delete a record??? by only typing it in the textbox, then It it will the record?
-
Feb 16th, 2006, 11:29 AM
#6
Hyperactive Member
Re: Searching Databases
use adodc1.recorset.delete
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
|