From: smk23 on
Is there any way to pass in the name of a function programmatically? I have
similar parameters for a couple of functions and would like to pass in the
function name to a statement such as:

UpdateAppointment=FunctionName("Appointment",lngAppointmentID)

Can this be done?
Thanks,
Sam
From: Stuart McCall on
"smk23" <smk23(a)discussions.microsoft.com> wrote in message
news:1758052D-54C8-4A99-8DD7-979A98703B21(a)microsoft.com...
> Is there any way to pass in the name of a function programmatically? I
> have
> similar parameters for a couple of functions and would like to pass in the
> function name to a statement such as:
>
> UpdateAppointment=FunctionName("Appointment",lngAppointmentID)
>
> Can this be done?
> Thanks,
> Sam

Check out 'Eval' in Access help. Does just what you need.