Results 1 to 2 of 2

Thread: help on data report using sql

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2007
    Posts
    36

    help on data report using sql

    im using data envi. ,how can u have restriction in a query for example. select employee from emp_tbl where emp_id = ' " & text1 & " ' from visual . and show it in data report. another thing, how can u pass value from visuaBasic to a data report Richtextbox. Ty more powerl

  2. #2
    Fanatic Member eimroda's Avatar
    Join Date
    Jul 2000
    Location
    Philippines
    Posts
    642

    Re: help on data report using sql

    try this:
    vb Code:
    1. If de.State = 1 Then de.Close
    2. de.Commands("myCommand").CommandText = "SELECT ...... WHERE emp_id ='" & Text1.Text & "'"
    3. de.Open
    4.  
    5. myReport.Show
    On Error GoTo Hell

    Hell:
    Kill Me


    Food For Thought:

    - Do not judge a book... if you're not a judge!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width