Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 14, 2012 04:29 PM by hans_v
Member
176 Points
423 Posts
Dec 09, 2012 12:58 PM|LINK
I USED THIS CODE IN SQL
DATEDIFF(DAY, from, GETDATE())/30 AS TEN,
WHAT CAN BE USED IN ACCESS DATA SOURCE
Dec 09, 2012 01:05 PM|LINK
I tried IT BY USING THI S
[from]-NOW()/30 AS TEN
i want the out put in months
Dec 09, 2012 01:24 PM|LINK
when i used this code
DATEDIFF(DAY, [from], date())/30 AS TEN
the error is
Contributor
3970 Points
1096 Posts
Dec 09, 2012 01:34 PM|LINK
Baiju EP when i used this code DATEDIFF(DAY, [from], date())/30 AS TEN the error is No value given for one or more required parameters. <div> </div>
<div> </div>
Why did you switch from now() to date()? Does date() take a parameter? I can look it up, but so can you.
All-Star
31523 Points
6437 Posts
Dec 09, 2012 01:41 PM|LINK
Dec 09, 2012 02:22 PM|LINK
how can i add to access data source
35986 Points
6550 Posts
Dec 09, 2012 03:15 PM|LINK
Baiju EP WHAT CAN BE USED IN ACCESS DATA SOURCE
As already said, Now() is the equivalent of GETDATE() in SQL Server
Baiju EP when i used this code DATEDIFF(DAY, [from], date())/30 AS TEN the error is No value given for one or more required parameters.
Because day is a reserved word (just like from) in Jet. But in Access (jet), the interval parameter is a string
DATEDIFF('d', [from], date())/30 AS TEN
http://www.techonthenet.com/access/functions/date/datediff.php
Dec 09, 2012 03:55 PM|LINK
TRIED THE SCRIPT IN GRID VIW TEN FIELD DISPLAYS dd/MM/yyyy AND NOT THE MONTH
Dec 09, 2012 09:48 PM|LINK
Baiju EP TRIED THE SCRIPT IN GRID VIW TEN FIELD DISPLAYS dd/MM/yyyy AND NOT THE MONTH
What do you mean?
Dec 10, 2012 12:06 AM|LINK
try this
datediff('d', [from], NOW()) / 30 AS TEN
simiilar with your DATEDIFF(DAY, from, GETDATE())/30 AS TEN This will working
Baiju EP
Member
176 Points
423 Posts
ACCESS DATA SOURCE GET CURRENT DATE
Dec 09, 2012 12:58 PM|LINK
I USED THIS CODE IN SQL
DATEDIFF(DAY, from, GETDATE())/30 AS TEN,
WHAT CAN BE USED IN ACCESS DATA SOURCE
Baiju EP
Member
176 Points
423 Posts
Re: ACCESS DATA SOURCE GET CURRENT DATE
Dec 09, 2012 01:05 PM|LINK
I tried IT BY USING THI S
[from]-NOW()/30 AS TEN
i want the out put in months
Baiju EP
Member
176 Points
423 Posts
Re: ACCESS DATA SOURCE GET CURRENT DATE
Dec 09, 2012 01:24 PM|LINK
when i used this code
DATEDIFF(DAY, [from], date())/30 AS TEN
the error is
No value given for one or more required parameters.
<div></div>
Dan Bracuk
Contributor
3970 Points
1096 Posts
Re: ACCESS DATA SOURCE GET CURRENT DATE
Dec 09, 2012 01:34 PM|LINK
Why did you switch from now() to date()? Does date() take a parameter? I can look it up, but so can you.
oned_gk
All-Star
31523 Points
6437 Posts
Re: ACCESS DATA SOURCE GET CURRENT DATE
Dec 09, 2012 01:41 PM|LINK
Baiju EP
Member
176 Points
423 Posts
Re: ACCESS DATA SOURCE GET CURRENT DATE
Dec 09, 2012 02:22 PM|LINK
how can i add to access data source
hans_v
All-Star
35986 Points
6550 Posts
Re: ACCESS DATA SOURCE GET CURRENT DATE
Dec 09, 2012 03:15 PM|LINK
As already said, Now() is the equivalent of GETDATE() in SQL Server
Because day is a reserved word (just like from) in Jet. But in Access (jet), the interval parameter is a string
DATEDIFF('d', [from], date())/30 AS TEN
http://www.techonthenet.com/access/functions/date/datediff.php
Baiju EP
Member
176 Points
423 Posts
Re: ACCESS DATA SOURCE GET CURRENT DATE
Dec 09, 2012 03:55 PM|LINK
TRIED THE SCRIPT IN GRID VIW TEN FIELD DISPLAYS dd/MM/yyyy AND NOT THE MONTH
hans_v
All-Star
35986 Points
6550 Posts
Re: ACCESS DATA SOURCE GET CURRENT DATE
Dec 09, 2012 09:48 PM|LINK
What do you mean?
oned_gk
All-Star
31523 Points
6437 Posts
Re: ACCESS DATA SOURCE GET CURRENT DATE
Dec 10, 2012 12:06 AM|LINK
try this
datediff('d', [from], NOW()) / 30 AS TENsimiilar with your DATEDIFF(DAY, from, GETDATE())/30 AS TEN
This will working