Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-15-2008, 04:28 PM
=?Utf-8?B?TGVzbGllIFBvcnRlciBPSFY=?=
 
Posts: n/a
access 2003 query-criteria

Hello.
I have a field with a critera like this....

Like [Enter Batch 1*] Or Like [Enter Batch 2*] Or Like [Enter Batch 3*] Or
Like [Enter Batch 4*]

what i need to do is create a variable to display on a report combining
those 4 inputs. i cant seem to get anything in my limited knowledge to work
=]

Thanks in advance for any help..

Leslie
Reply With Quote
  #2 (permalink)  
Old 08-15-2008, 05:53 PM
=?Utf-8?B?S0FSTCBERVdFWQ==?=
 
Posts: n/a
RE: access 2003 query-criteria

Change the criteria to this --
Like [Enter Batch 1*] &"*" Or Like [Enter Batch 2*] &"*" Or Like [Enter
Batch 3*] &"*" Or Like [Enter Batch 4*] &"*"

In design view add a new field in Field row of the grid like this --
Report_Criteria: [Enter Batch 1*] &(", " + [Enter Batch 2*]) &(", " +
[Enter Batch 3*]) &(", " + [Enter Batch 4*])

It is best to copy and paste the parts of the criteria so they will be
identical in the field row as in the criteria row.
--
KARL DEWEY
Build a little - Test a little


"Leslie Porter OHV" wrote:

> Hello.
> I have a field with a critera like this....
>
> Like [Enter Batch 1*] Or Like [Enter Batch 2*] Or Like [Enter Batch 3*] Or
> Like [Enter Batch 4*]
>
> what i need to do is create a variable to display on a report combining
> those 4 inputs. i cant seem to get anything in my limited knowledge to work
> =]
>
> Thanks in advance for any help..
>
> Leslie

Reply With Quote
  #3 (permalink)  
Old 08-15-2008, 06:00 PM
John Spencer
 
Posts: n/a
Re: access 2003 query-criteria

You should be able to use the following as the source for a control in the report.

Control Source: = [Enter Batch 1*] & " " & [Enter Batch 2*] & " " & [Enter
Batch 3*] & " " & [Enter Batch 4*]


John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County

Leslie Porter OHV wrote:
> Hello.
> I have a field with a critera like this....
>
> Like [Enter Batch 1*] Or Like [Enter Batch 2*] Or Like [Enter Batch 3*] Or
> Like [Enter Batch 4*]
>
> what i need to do is create a variable to display on a report combining
> those 4 inputs. i cant seem to get anything in my limited knowledge to work
> =]
>
> Thanks in advance for any help..
>
> Leslie

Reply With Quote
  #4 (permalink)  
Old 08-15-2008, 06:05 PM
=?Utf-8?B?TGVzbGllIFBvcnRlciBPSFY=?=
 
Posts: n/a
RE: access 2003 query-criteria

so if i have the same criteria input it will only ask once?

"KARL DEWEY" wrote:

> Change the criteria to this --
> Like [Enter Batch 1*] &"*" Or Like [Enter Batch 2*] &"*" Or Like [Enter
> Batch 3*] &"*" Or Like [Enter Batch 4*] &"*"
>
> In design view add a new field in Field row of the grid like this --
> Report_Criteria: [Enter Batch 1*] &(", " + [Enter Batch 2*]) &(", " +
> [Enter Batch 3*]) &(", " + [Enter Batch 4*])
>
> It is best to copy and paste the parts of the criteria so they will be
> identical in the field row as in the criteria row.
> --
> KARL DEWEY
> Build a little - Test a little
>
>
> "Leslie Porter OHV" wrote:
>
> > Hello.
> > I have a field with a critera like this....
> >
> > Like [Enter Batch 1*] Or Like [Enter Batch 2*] Or Like [Enter Batch 3*] Or
> > Like [Enter Batch 4*]
> >
> > what i need to do is create a variable to display on a report combining
> > those 4 inputs. i cant seem to get anything in my limited knowledge to work
> > =]
> >
> > Thanks in advance for any help..
> >
> > Leslie

Reply With Quote
  #5 (permalink)  
Old 08-15-2008, 06:42 PM
=?Utf-8?B?S0FSTCBERVdFWQ==?=
 
Posts: n/a
RE: access 2003 query-criteria

No, it will ask four times.
--
KARL DEWEY
Build a little - Test a little


"Leslie Porter OHV" wrote:

> so if i have the same criteria input it will only ask once?
>
> "KARL DEWEY" wrote:
>
> > Change the criteria to this --
> > Like [Enter Batch 1*] &"*" Or Like [Enter Batch 2*] &"*" Or Like [Enter
> > Batch 3*] &"*" Or Like [Enter Batch 4*] &"*"
> >
> > In design view add a new field in Field row of the grid like this --
> > Report_Criteria: [Enter Batch 1*] &(", " + [Enter Batch 2*]) &(", " +
> > [Enter Batch 3*]) &(", " + [Enter Batch 4*])
> >
> > It is best to copy and paste the parts of the criteria so they will be
> > identical in the field row as in the criteria row.
> > --
> > KARL DEWEY
> > Build a little - Test a little
> >
> >
> > "Leslie Porter OHV" wrote:
> >
> > > Hello.
> > > I have a field with a critera like this....
> > >
> > > Like [Enter Batch 1*] Or Like [Enter Batch 2*] Or Like [Enter Batch 3*] Or
> > > Like [Enter Batch 4*]
> > >
> > > what i need to do is create a variable to display on a report combining
> > > those 4 inputs. i cant seem to get anything in my limited knowledge to work
> > > =]
> > >
> > > Thanks in advance for any help..
> > >
> > > Leslie

Reply With Quote
  #6 (permalink)  
Old 08-15-2008, 07:17 PM
=?Utf-8?B?TGVzbGllIFBvcnRlciBPSFY=?=
 
Posts: n/a
Re: access 2003 query-criteria

so if im understanding it right...

anything i use in the [ xyz ] to ask for an input becomes a variable named [
xyz ]?
and is this global as long as the query is active?

"John Spencer" wrote:

> You should be able to use the following as the source for a control in the report.
>
> Control Source: = [Enter Batch 1*] & " " & [Enter Batch 2*] & " " & [Enter
> Batch 3*] & " " & [Enter Batch 4*]
>
>
> John Spencer
> Access MVP 2002-2005, 2007-2008
> The Hilltop Institute
> University of Maryland Baltimore County
>
> Leslie Porter OHV wrote:
> > Hello.
> > I have a field with a critera like this....
> >
> > Like [Enter Batch 1*] Or Like [Enter Batch 2*] Or Like [Enter Batch 3*] Or
> > Like [Enter Batch 4*]
> >
> > what i need to do is create a variable to display on a report combining
> > those 4 inputs. i cant seem to get anything in my limited knowledge to work
> > =]
> >
> > Thanks in advance for any help..
> >
> > Leslie

>

Reply With Quote
  #7 (permalink)  
Old 08-15-2008, 07:34 PM
John Spencer
 
Posts: n/a
Re: access 2003 query-criteria

A report will treat a query parameter as if it were another field. It doesn't
show up in the list of fields, but it can be referred to.

John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County

Leslie Porter OHV wrote:
> so if im understanding it right...
>
> anything i use in the [ xyz ] to ask for an input becomes a variable named [
> xyz ]?
> and is this global as long as the query is active?
>
> "John Spencer" wrote:
>
>> You should be able to use the following as the source for a control in the report.
>>
>> Control Source: = [Enter Batch 1*] & " " & [Enter Batch 2*] & " " & [Enter
>> Batch 3*] & " " & [Enter Batch 4*]
>>
>>
>> John Spencer
>> Access MVP 2002-2005, 2007-2008
>> The Hilltop Institute
>> University of Maryland Baltimore County
>>
>> Leslie Porter OHV wrote:
>>> Hello.
>>> I have a field with a critera like this....
>>>
>>> Like [Enter Batch 1*] Or Like [Enter Batch 2*] Or Like [Enter Batch 3*] Or
>>> Like [Enter Batch 4*]
>>>
>>> what i need to do is create a variable to display on a report combining
>>> those 4 inputs. i cant seem to get anything in my limited knowledge to work
>>> =]
>>>
>>> Thanks in advance for any help..
>>>
>>> Leslie

Reply With Quote
  #8 (permalink)  
Old 08-18-2008, 01:50 PM
=?Utf-8?B?TGVzbGllIFBvcnRlciBPSFY=?=
 
Posts: n/a
Re: access 2003 query-criteria

AHHH!!... ok now im seeing... Thanks.

i used Karls original code he replied to me with but it was stumping me why
it only asked for the info once. i figured it would ask me a bunch of times
since i have the same [ xyz ] inputs in 2 places but it only asked once and
used the info in both places. so im my insance i was expecting 8 inputs but i
only got 4.

"John Spencer" wrote:

> A report will treat a query parameter as if it were another field. It doesn't
> show up in the list of fields, but it can be referred to.
>
> John Spencer
> Access MVP 2002-2005, 2007-2008
> The Hilltop Institute
> University of Maryland Baltimore County
>
> Leslie Porter OHV wrote:
> > so if im understanding it right...
> >
> > anything i use in the [ xyz ] to ask for an input becomes a variable named [
> > xyz ]?
> > and is this global as long as the query is active?
> >
> > "John Spencer" wrote:
> >
> >> You should be able to use the following as the source for a control in the report.
> >>
> >> Control Source: = [Enter Batch 1*] & " " & [Enter Batch 2*] & " " & [Enter
> >> Batch 3*] & " " & [Enter Batch 4*]
> >>
> >>
> >> John Spencer
> >> Access MVP 2002-2005, 2007-2008
> >> The Hilltop Institute
> >> University of Maryland Baltimore County
> >>
> >> Leslie Porter OHV wrote:
> >>> Hello.
> >>> I have a field with a critera like this....
> >>>
> >>> Like [Enter Batch 1*] Or Like [Enter Batch 2*] Or Like [Enter Batch 3*] Or
> >>> Like [Enter Batch 4*]
> >>>
> >>> what i need to do is create a variable to display on a report combining
> >>> those 4 inputs. i cant seem to get anything in my limited knowledge to work
> >>> =]
> >>>
> >>> Thanks in advance for any help..
> >>>
> >>> Leslie

>

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:43 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Homeowner Loans | Find a Better Job | Loans | Cell Phone | Credit Cards



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114