Querry Criteria

  • Thread starter injanib via AccessMonster.com
  • Start date
I

injanib via AccessMonster.com

Hellooo Monsters!

I have a report that is based on a querry. The querry has two fields,
StartMeter and EndMeter.
I have a form with two textfields, txtSartMeter and txtEndMeter where I enter
a value for start meter and end meter and a button to open the report. I
would like to set the criteria in the querry under StartMeter and EndMeter to
reffer to these two text boxes respetively and filter the report for records
starting from the StartMeter and ending with EndMeter. In other words
records between txtStartMeter and EndMeter. I know how to do this under one
field, but don't know how if the criteria fields are two different fields.
 
G

Guest

Use criteria under each of the fileds.
Like this --
StartMeter EndMeter
=[Forms]![YourFormName]![txtSartMeter] >=[Forms]![YourFormName]![txtEndMeter]
Use the criteria on the same row.
 
I

injanib via AccessMonster.com

Thanks allot!

KARL said:
Use criteria under each of the fileds.
Like this --
StartMeter EndMeter
=[Forms]![YourFormName]![txtSartMeter] >=[Forms]![YourFormName]![txtEndMeter]
Use the criteria on the same row.
Hellooo Monsters!
[quoted text clipped - 7 lines]
records between txtStartMeter and EndMeter. I know how to do this under one
field, but don't know how if the criteria fields are two different fields.
 
G

Guest

I just noticed an error - the criteria for EndMeter should be <=
--
KARL DEWEY
Build a little - Test a little


injanib via AccessMonster.com said:
Thanks allot!

KARL said:
Use criteria under each of the fileds.
Like this --
StartMeter EndMeter
=[Forms]![YourFormName]![txtSartMeter] >=[Forms]![YourFormName]![txtEndMeter]
Use the criteria on the same row.
Hellooo Monsters!
[quoted text clipped - 7 lines]
records between txtStartMeter and EndMeter. I know how to do this under one
field, but don't know how if the criteria fields are two different fields.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Help Me Fix Min Max Avg Querry 1
Problem with Querry Criteria 2
querry 1
Filter records in a report 1
Stuck on a Querry 6
sorted querry, but unsorted form 4
Querry link to Report 4
Too many forms? 3

Top