Results 1 to 4 of 4

Thread: <resolved> Querry and print

Threaded View

  1. #1

    Thread Starter
    Addicted Member SaharaWizard's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    254

    Resolved <resolved> Querry and print

    Hello guys
    I have run into an unusual problem, so I am trying to find an alternative solution instead of figuring out what I did wrong originally.

    <b>Here is the question:</b>
    I have an Access 2000 table with records of tickets. Each record has the following columns:
    Id(long integer)-----Style(Text)-------RequestNo(Long Integer)-----PO(Long Int.)
    I need to querry this table for all tickets with specific RequestNo and print all the tickets one after another.

    What is the best way to do this.
    I am using the following code to querry. HOw do I get the print thing to work?
    VB Code:
    1. Dim cn As New ADODB.Connection
    2. Dim rs As New ADODB.Recordset
    3. cn.ConnectionString = "B22"
    4. cn.Open
    5. rs.Open "SELECT Id, Style,RQN,PO FROM Rolls WHERE RQN = " & CLng(Trim(txtKRid.Text)) & " ORDER BY Id", cn, adOpenKeyset, adLockOptimistic, adCmdText
    6. ' Print thing should probably happen here.
    7.  
    8. rs.close
    9. cn.close
    Last edited by SaharaWizard; Apr 14th, 2005 at 03:39 PM.
    Don't let your schooling get in the way of your education.

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