Results 1 to 3 of 3

Thread: sql :like

  1. #1

    Thread Starter
    Lively Member dadazhu's Avatar
    Join Date
    Oct 2001
    Location
    Opera House
    Posts
    126

    sql :like

    hi, all

    Can anyone tell me what is wrong with this:

    strQry = "select * from ticket where " + _
    "[record date] <= #" & date1 & "#" + _
    "and [Flight NO] like ' ' " & text1 & " '* ' "

    Thank you in advance.
    I wish 49.9999999% of my dreams have come true

  2. #2
    Member
    Join Date
    Jul 2002
    Location
    Sweden
    Posts
    40
    try this:

    strQry = "select * from ticket where " + _
    "[record date] <= #" & date1 & "#" + _
    "and [Flight NO] like '" & text1 & "%'"

  3. #3

    Thread Starter
    Lively Member dadazhu's Avatar
    Join Date
    Oct 2001
    Location
    Opera House
    Posts
    126
    Thank you ,digisenze.

    It worked!
    I wish 49.9999999% of my dreams have come true

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