CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    URGENT - DataEnvironment - SQL Query

    Subject Urgent - DataReport / DataEnvironment
    Category Database
    Posted by HanneSThEGreaT on 9/25/01 at 07:36 pm
    Rating not rated


    Hello.
    I created a Data Environment, included the fields I want to print on the Data Report. I used an SQL statement to retreive the fields to print, as one would normally do. My question is: how can I modify that SQL statement to print (Example)all the payments which is less than $100, instead of All the payments?
    If this question is unclear please let me know
    Please help this is very urgent
    Thanx




    F. T. W.

  2. #2
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: URGENT - DataEnvironment - SQL Query

    Use the where clause

    strSQL = "SELECT * FROM YourTable WHERE YourField < 100"

    David Paulson


  3. #3
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: URGENT - DataEnvironment - SQL Query

    Hello Paul, thanx for the help. I've got a few question though.
    1) Where do I have to put this in? In the DataEnvironment itself?
    2)
    What if I want the user to select the amount they want to print(Example) less than 200, or = 200?

    Thanx

    F. T. W.

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

Featured