|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
User Function Date parameterI'm trying to create a User Defined Function which will return only records
with a date earlier than the current date. I tried using ,GETDATE() in the criteria block of the date field but when I try to save the function I get the error "ADO Error: Invalid use of 'getdate' within a function. I suppose I could just make it a variable and then pass the current date to it but I think the function should grab the date by itself. Anyone know why it won't? Thanks You have two options:
1) pass the date as a parameter (fast) ; or 2) create a view such as: create view vNow as select getdate() as Now go ....and get the current time from the view. (slow) Choose your weapon. :) ML --- http://milambda.blogspot.com/ |
|||||||||||||||||||||||