I don't know if this is possible but I'm hoping someone does, and I do know this is the place to ask. I'm using a variation of the following statement to return a record set:
The [UserID] field is where I'm having problems, I'm not using that piece as it's shown above. I'm hoping there is a way to include results from say 2 users while omitting the rest. The recordset is populating a table in a vbscript asp page and will return 100+ records for any user. That said I don't want to break up the queries and involve more than one recordset as it will trash my paginating scheme.
Anyone got the answer?
Thanks in advance, Jeff
Code:
sql = "SELECT [Job#] & ', ' & [UserID] & ', ' & [Priority] & ', ' & [Delivered] AS [strJobs] FROM [Job] WHERE [UserID]=x, x, x [Account#]=" & objAcct & " AND [Dept#]=" & objDept & " AND [Status]='Delivered' AND [Delivered] BETWEEN #" & objStartDate & "# AND #" & objEndDate & "# ORDER BY [UserID], [Delivered];"
Anyone got the answer?
Thanks in advance, Jeff