Hi everyone,
I'm trying to pass in a parameter to stored procedure in a form
and is giving me the following error:
MSAccess
There was a problem accessing a propery or method of the OLE object.
works
Me!shipping_sched_list_subform.Form.RecordSource = "exec spShipping_sched_daterange"
Doesn’t work
Dim num_days as integer
Num_days = 14
Me!shipping_sched_list_subform.Form.RecordSource = "exec spShipping_sched_daterange '" & num_days & "'" "
Can anyone know how I can fix this?
Thanks much!