Results 1 to 4 of 4

Thread: ADO Problem.

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    13

    Smile ADO Problem.

    Hi Dear,
    I am working with ADO. I have some problem.

    Database Problems

    1. I want to show some data from a specific date to a specific date.
    2. Suppose I have some field in a Table like Name, Occupation etc. In Occupation Field there is Teacher, Student etc. Now I want to show only the students name from the Occupation fields.

    VB Problem

    1. Suppose I have a Combo box and there is some list like:Anila
    David
    Dave
    Dumb
    When I will type Du in the combo box Dumb will be selected. Like a Dictionary Software.

    How I can Do this? Could you please help me?

  2. #2
    Member
    Join Date
    May 2003
    Posts
    32
    Database :

    1. For an Access Database :
    SELECT Field1 FROM TABLE WHERE DateField>#1/1/2003# AND DateField<#7/1/2003#
    For a SQL Server :
    SELECT Field1 FROM TABLE WHERE DateField>'20030101' AND DateField<'20030701'

    2. SELECT Name FROM TABLE WHERE Occupation='Student'

    VB :

    1. Use a combobox and set the style property to 'Dropdown List'. When you enter a letter, the combo automatically jumps to the item where the first letter matches the one you type.
    It is possible to do it with multiple letters, but then you will have to use a timer and a remember the letters that are typed. I wouldn't do that unless your list is extremely long.

  3. #3
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    1.
    Code:
     
    Select * from tableName WHERE [date] BETWEEN '" & txtBeginDate.Text & "' AND '" & txtEndDate.Text & "'
    2.
    you want to show only the students name?
    Code:
    Select studentName from tableName WHERE Occupation = 'Student'
    3. run a search on google for "Auto Complete combobox".
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  4. #4
    Junior Member
    Join Date
    Mar 2000
    Location
    Louisville, KY
    Posts
    21
    Hi RummyVB

    Hope the Following link has got the answers to your Question

    http://www.listensoftware.com/listbox.html


    Shubhabrata De

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