Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2007
    Posts
    12

    Peekaboo! how to search a entry from database using input box and combobox.

    how to search a entry from database using input box and combobox. when we enter a name starting with 'A' in inputbox in under it a combobox displays all the names starting with 'A' . what is the code ...

  2. #2
    Join Date
    May 2005
    Posts
    1,115
    Here is a query:

    "SELECT id,name FROM users WHERE name LIKE '"..Input.GetText("Input1").."%'; LIMIT 600"

    Polulate the results to the combobox.
    Never know what life is gonna throw at you.
    (Based on a true story.)

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    yeah, it took me a while to understand how to search a database but its actually very easy

    where blue points out, the key word is "LIKE"
    Open your eyes to Narcissism, Don't let her destroy your life!!

  4. #4
    Join Date
    Apr 2007
    Posts
    12

    Peekaboo! plz post a project with this code ..please...

    plz post a project with this code ..please...

  5. #5
    Join Date
    May 2005
    Posts
    1,115
    You can not learn anything if you do it like that. Try making it yourself and then, if stuck, post the code that you can not make to work. Which part of the problem you do not understand? I'm sure you can place Input and ComboBox on the pane. You need to put the code on the Input's OnKey event. Also, you need to firstly open or connect to the database.
    Never know what life is gonna throw at you.
    (Based on a true story.)

Similar Threads

  1. Guide to connect to an online MySQL database
    By bule in forum AutoPlay Media Studio 6.0
    Replies: 91
    Last Post: 12-11-2007, 03:14 AM
  2. Combo Box Help - Please
    By mingwingming in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 06-29-2005, 03:11 AM
  3. multiline input table apocalypse
    By dulux1309 in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 04-09-2004, 05:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts