Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateAdd function

Status
Not open for further replies.

Solly

Programmer
Joined
Sep 14, 2000
Messages
3
Location
US
I am connecting with Access database through JetOLEDB.
I have to select from employee table adding 3 years to the joineddate.The following code gives the error " No value given for one or more required parameters"
-2147217904

Select dateadd(year,3,employee.joineddate) from Employee

Thanks. [sig][/sig]
 
Check the syntax for date add.

Year needs to properly specified. I think it is "yyyy", but check whatever in help

[sig]<p>MichaelRed<br><a href=mailto:mred@duvallgroup.com>mred@duvallgroup.com</a><br>There is never time to do it right but there is always time to do it over[/sig]
 
Does the field employee.joineddate exist in the table? I've seen this error many time if I'm missing a field in an Access Table or query.. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top