Darrenc
Registered User.
- Local time
- Today, 22:01
- Joined
- Apr 30, 2004
- Messages
- 62
Hi, i hope someone can help.
I've be trying to create a simple report using 'report server project' in Visual Studio.
The report I'm trying to create gets its data from an Access database. All I'm trying to do is get some data with the following date range:
The above parameter works in access fine but the 'query designer' in visual studio doesn't play by the same set of rules. i get the error 'Invalid or missing expression'
I have simplified the parameter a bit so that I'm just looking at today's date minus 60 days.
Here is what i have tried so far:
And lots of other variations.
I guess because I'm connecting to an access database i have to play by access's rules, but it doesn't let my use access type parameters.
Does anyone have any suggestion of what to try next?
Regards
Darren
I've be trying to create a simple report using 'report server project' in Visual Studio.
The report I'm trying to create gets its data from an Access database. All I'm trying to do is get some data with the following date range:
Code:
QuotCompleteDate = Between Date() AND Date()-60
The above parameter works in access fine but the 'query designer' in visual studio doesn't play by the same set of rules. i get the error 'Invalid or missing expression'
I have simplified the parameter a bit so that I'm just looking at today's date minus 60 days.
Here is what i have tried so far:
Code:
QuoteCompleteDate < Date() -60
And i get the error 'Your entry cannot be converted to a valid date time value'
Code:
QuoteCompleteDate < NOW() -60
And i get the error 'Cannot convert entry to a valid date/time; TO_DATE function might be required'
Code:
TO_DATE(QuoteCompleteDate, 'dd-mm-yyy')
Undefined function 'TO_DATE' in expression.
Code:
QuoteCompleteDate = DATEADD(dd, 0, DATEDIFF(dd, 0, GETDATE() - 1))
Undefined function 'GET_DATE' in expression.
And lots of other variations.
I guess because I'm connecting to an access database i have to play by access's rules, but it doesn't let my use access type parameters.
Does anyone have any suggestion of what to try next?
Regards
Darren