Parameter Problem

C

Cameron Frasnelly

Hi all,

I've got a report that I open with two parameters (see below). When I open
the stored procedure in design view and put in "=2 OR IS NULL" the SP works
fine... when I try to pass the parameter (below) I receive an error message
saying invalid SQL something or other... any ideas on how to pass a
multipart parameter???

Many thanks!!!!


Dim strRecordSource As String
strRecordSource = "Exec [spWorkOrder_byAssignedTo_Department] 1 ,2 OR IS
NULL "
Me.RecordSource = strRecordSource


Cameron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top