Results 1 to 4 of 4

Thread: More or less than not working.....

  1. #1

    Thread Starter
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542

    More or less than not working.....

    Why does this not work?


    If DataEnvironment1.rsISSUED1033.State = adStateOpen Then DataEnvironment1.rsISSUED1033.Close

    DataEnvironment1.Commands("ISSUED1033").CommandType = adCmdText
    DataEnvironment1.Commands("ISSUED1033").CommandText = "SELECT * FROM ISSUED1033 WHERE DysOnIssue >= '" & Text4.Text & "'"
    DataEnvironment1.ISSUED1033

    DataReport6.DataMember = "ISSUED1033"

    DataReport6.Show

    'allows a refresh with new data without having to close the report first.
    DataReport6.Refresh

    The DysOnIssue contains numbers of days that the equipment has been issued and text4 contains a number of day's that you wish to see equipment issued over. But it does'nt work...HELP!

    thx
    Haven't got anything to say that is the least bit interesting.
    www.tartan-underground.com

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: More or less than not working.....

    Try a sql statement without single quotes around the textbox value.

    VB Code:
    1. DataEnvironment1.Commands("ISSUED1033").CommandText = "SELECT * FROM ISSUED1033 WHERE DysOnIssue >= " & Text4.Text

  3. #3

    Thread Starter
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542

    Re: More or less than not working.....

    Brucevde

    i get Get Data type mismatch incriteria expresion
    Haven't got anything to say that is the least bit interesting.
    www.tartan-underground.com

  4. #4

    Thread Starter
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542

    Re: More or less than not working.....

    If I just use = then it works fine?
    Haven't got anything to say that is the least bit interesting.
    www.tartan-underground.com

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