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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with function

Status
Not open for further replies.

traycee

IS-IT--Management
Sep 6, 2001
245
US
I'm sure it's something simple that I am just missing. The following line is erroring on Program Admission Date

Function YearMonthDate([Program Admission Date] As Date, [Date Discharged], As Date) As String

What am I missing in the syntax.
 
I'd suggest this:
Function YearMonthDate(ProgramAdmissionDate As Date, DateDischarged As Date) As String

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
That doesn't quite work. I didn't write this database. The fields I'm identifying actually have spaces between them. i.e. Program Admission Date and Date Discharged. I thought brackets around the field names would work, but of course they didn't. Any thoughts.
 
Traycee,

The function will take parameters not table fields.

Could you post some more of the function so we can establish what is trying to be achieved.

Danny

Never Think Impossible
 
Thanks...I figured it out and am not getting the correct output.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top