Results 1 to 2 of 2

Thread: Select user criteria

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2001
    Location
    Calgary
    Posts
    273

    Select user criteria

    I want to prints only selected records from a user criteria before print the report. I have a table with some orders that I would like to print from selected dates for example the orders from today or the orders from last month.

    Question how can I enter an input to select these records?


    Thanks & Regards
    mannyso

  2. #2
    New Member
    Join Date
    Sep 2002
    Posts
    2
    If you are using Access, there is two methods.

    One method would be to use a filter on the report, on the OnOpen event of the report, you change the filter property using the datas entered on a form, for example:

    VB Code:
    1. Private Sub Report_Open(Cancel As Integer)
    2.     Me.Filter = "TheDate = " & [Forms]![frmdate]![USERDATE]
    3. End Sub

    You could also specify the [Forms]![frmdate]![USERDATE] directly into a query, each time you run the query, you only need to have the form loaded for the query to work. Both method require the form to be open to work and the textbox filled.

    JeffB

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