Results 1 to 3 of 3

Thread: help Printing one record

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    3

    Angry

    I need help printing only one record. the command i use prints all records.

  2. #2
    Addicted Member P.S.W.'s Avatar
    Join Date
    Aug 2000
    Posts
    146
    I don't understand exactly what you're doing, but maybe you can build a query that will return just the one record you're after, and then print the results of that query?

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    3
    I am very new to vb and trying to make a front for a database. I can print the access report using the code below but it prints all records and i just want to print the current record.


    Private Sub Command2_Click()
    Dim oApp As Object

    Set oApp = GetObject("C:\windows\desktop\security\security.mdb", "access.application")
    oApp.Visible = False
    oApp.DoCmd.openReport "security"


    End Sub

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