Results 1 to 2 of 2

Thread: Datareport and sql query

  1. #1

    Thread Starter
    Hyperactive Member sterankin's Avatar
    Join Date
    Jul 2001
    Location
    N.Ireland
    Posts
    336

    Datareport and sql query

    I am trying to create a datareport, so when the user clicks a button, the report will appear, and display only certain info from the database.

    The datareport should only show data where the date field is todays date:

    i.e. something like this


    "SELECT DateOfTask, Task FROM Table1 WHERE DateOfTask =" & " ' " & date & " ' "


    How do I do this in the datareport, I have tried typing in the SQL in the data environment, but I just get errors.

    I take it you can't use "Date" in the dataenvironment SQL. It doesn't support " or ' either?

    Thanks


    "The Dude abides...."

  2. #2
    Lively Member
    Join Date
    Sep 2001
    Location
    Philippines
    Posts
    75
    what database your using? if access try making a query in access then copy the SQL to the dataenvironment SQL...
    tazzzman2001
    [email protected]

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