I have a stored proc which accepts a date parameter as an int (YYYYMMDD) and
which I do not want to change. I want to create a report which allows users
to enter the date as a date and then convert this to the int format before
passing it to the stored proc. I've already created the following custom code
to do the conversion:
Function ConvertDate(ByVal DateIn As Date) as String
Dim StringDate as String
Return DATEPART(DateInterval.Year,dateIn) &
DATEPART(DateInterval.Month,dateIn) & DATEPART(DateInterval.Day,dateIn)
End Function
How would I assigned the converted date to the parameter before it gets
passed to the stored proc.