|
-
March 15th, 2010, 08:01 AM
#1
Newbie - Passing list of parameters
Hi,
I have this query in the crystal report
SELECT tblEmployees.iEmployeeNum, tblEmployees.tLastName, tblEmployees.tFirstName
FROM tblEmployees
WHERE tblEmployees.iEmployeeNum IN ({?empNum})
?empNum is parameter define to allow multiple values (numbers)
When I create this, a form is shown to enter values (probably to test this query).
If I enter one value for ?empNum, everything is fine, but if I try to enter 2 or more integers there is error saying
---
Failed to retrive data from the database.
Details: ADO Error Code: 0x
Source: Microsoft OLE DB Provider for SQL Server
Discription: Incorrect syntax near ','
SQL State 42000
Native Error: [Database Vendor Code: 102]
---
Please help. Thanks.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|