Link to home
Start Free TrialLog in
Avatar of a0k0a7
a0k0a7Flag for United States of America

asked on

SQL help to gather expression for Today() on a report

I am working on a report and I need to add a calculated field for today date.

I added a new field to the dataset named Today where I want to set an expression to capture the current date. When I preview the report the value shows up blank.

Anyone can shed some light on it. Thanks in advance.

User generated image
Avatar of Kelvin Sparks
Kelvin Sparks
Flag of New Zealand image

Set it's default to GETDATE()

Kelvin
SOLUTION
Avatar of Kelvin Sparks
Kelvin Sparks
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of a0k0a7

ASKER

Hi Kelvin,

When I do that I get error, 'GETDATE' is not declared. It may be inaccessible due to its protection level.
Avatar of a0k0a7

ASKER

If I use Date I get error, Date is a type and cannot be used as an expression.

When I used Now() it returned nothing...
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of a0k0a7

ASKER

thank you