CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2010

    Search as you type combobox with database

    1) I am using the code of Search as you type combobox.The script works fine when records are selected from the combobox,but when I need to enter new I cannot enter.Especially If a name say Ramesha has already been entered in the database and I need to enter a name Ramesh, I am unable to do so.Please help me modify the code.I am using it in registration of new names where the combobox is used to help in registering new name by helping with common names
    Tutorial at http://www.vb6.us/tutorials/visual-b...o-box-tutorial
    Source code at http://www.vb6.us/files/VBPrograms/C...hAsYouType.zip
    2)I am querying a field which is Yes/No.I want to add data when the answer is NO i.e 0. What code is more suitable

    If adodc1.Recordset.("Status") = 0 then or
    If adodc1.Recordset.("Status") <> -1 then
    I am sorry but i did not know whether I should have pasted the code or not after giving the links
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2006
    Fox Lake, IL

    Re: Search as you type combobox with database

    Why don't you read my article. It includes working source code.

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Tags for this Thread

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.