Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Visual Basic (https://www.askmehelpdesk.com/forumdisplay.php?f=469)
-   -   Query pass in vb data report (https://www.askmehelpdesk.com/showthread.php?t=161507)

  • Dec 11, 2007, 03:58 AM
    irfan512
    query pass in vb data report
    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
  • Dec 11, 2007, 08:46 AM
    ScottGem
    SELECT * FROM table WHERE staffno = 666
  • Jan 18, 2008, 09:09 AM
    yuffie
    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' "

  • All times are GMT -7. The time now is 07:30 PM.