Results 1 to 6 of 6

Thread: Searching Databases

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    37

    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?

  2. #2
    Hyperactive Member
    Join Date
    Feb 2006
    Location
    Philippines
    Posts
    468

    Re: Searching Databases

    on the command button

    adodc1.recordsource="select * from table1 where employee_number=' " & text1.text &" ' "
    adodc1.refresh

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    37

    Re: Searching Databases

    after I select that??? I will display that on the FlexGrid??? so how will I bind that???

  4. #4
    Hyperactive Member
    Join Date
    Feb 2006
    Location
    Philippines
    Posts
    468

    Re: Searching Databases

    set flexgrid1.datasource = adodc1

    or on the property window of the flexgrid set the datasource to adodc1

  5. #5

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    37

    Re: Searching Databases

    how about to delete a record??? by only typing it in the textbox, then It it will the record?

  6. #6
    Hyperactive Member
    Join Date
    Feb 2006
    Location
    Philippines
    Posts
    468

    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
  •  



Click Here to Expand Forum to Full Width