Log in

View Full Version : Query pass in vb data report


irfan512
Dec 11, 2007, 03:58 AM
I have three records in a table with staff no 555,666,777 and I want to pass select query in data report for only staff no =666

please solve this problem

ScottGem
Dec 11, 2007, 08:46 AM
SELECT * FROM table WHERE staffno = 666

yuffie
Jan 18, 2008, 09:09 AM
By datareport, do u mean crystal report?

If u're using crystal report, u can create a report with the staff no as its grouping. And then in the vb coding, u can type the report selection formula like
" {table.staffno}= '666' "