RE: Report from form input
- From: Maurice <Maurice@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 6 Nov 2007 00:20:00 -0800
Sure, but just start a new 'thread' because chances are that more people are
reading it again with a better chance of solving your question... ;-)
--
Maurice Ausum
"Mabeline" wrote:
Hi Maurice,.
This worked a treat. Thanks very much.
I have another challenge that I am working on at the moment with another
report retrieving data from 2 tables where the search criteria will come from
a field on a form that the user enters. I want to have the report display all
the fields from both tables. Only 1 field is the same in both tables. The
first part of the report will be from the first table and the bottom section
of the report will be from the second table. The relationship is one (table
1) to many (table 2). Would it be ok if I was to respond through this link if
I can't get the report working to see if you could help me out again?
Thanks in advance.
Mabeline.
"Maurice" wrote:
Try this:
strCriteria = "[Description] Like '" & "*" & FindRecords & "*" & "'"
That should do the trick...
hth
--
Maurice Ausum
"Mabeline" wrote:
I am trying to build a report based on the input from a form (1 input field
only) where the users input could be say Rolling Stones or The Rolling Stones
or Stones. The report needs to be able to display all records with all or any
of these words.
I have the following code that I have used to generate other reports with
exact record matches but am unable to understand visual basic enough to be
able to alter it to ensure I get all the records as suggested above. The code
is:
Private Sub FindRecords_AfterUpdate()
Dim strCriteria As String
Dim stDocName As String
stDocName = "Report Table"
strCriteria = "[Description] Like '" & FindRecords & "'"
DoCmd.OpenReport stDocName, acPreview, , strCriteria
DoCmd.Maximize
End Sub
What changes do I need to make to get all the records?
Thanks in advance.
Mabeline.
- References:
- RE: Report from form input
- From: Mabeline
- RE: Report from form input
- Prev by Date: Re: Grouping variable length values
- Next by Date: Re: 07 Design management confusion
- Previous by thread: RE: Report from form input
- Next by thread: Report with Different Criteria (Conceptually)
- Index(es):
Relevant Pages
|