A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Criteria Filter



 
 
Thread Tools Display Modes
  #1  
Old December 3rd, 2009, 05:32 PM posted to microsoft.public.access.queries
LTOSH
external usenet poster
 
Posts: 63
Default Criteria Filter

I have a database with a column that figures delinquent payment by how many
months delinquent based on their last payment.

now i am wanting to run a report where i tell it to give me a list that are
3 months delinquent but i want to be able to have a pop-up window to ask me
'by how many months' do i want to search.

how do i put this in the criteria of my query? I have tried " [type
number]" but it does not give me correct results. if i just put in the
criteria "3" it gives me the right results but i want to be able to type in
other month ranges.

I hope i made sense.
Thanks!
LTOSH
  #2  
Old December 3rd, 2009, 05:49 PM posted to microsoft.public.access.queries
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Criteria Filter

How are the results incorrect?

What data type is the field that stores the delinquent information?

What does the data in that field look like?

Have you defined the [type number] parameter as the same data type as the
delinquent information field?
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"LTOSH" wrote:

I have a database with a column that figures delinquent payment by how many
months delinquent based on their last payment.

now i am wanting to run a report where i tell it to give me a list that are
3 months delinquent but i want to be able to have a pop-up window to ask me
'by how many months' do i want to search.

how do i put this in the criteria of my query? I have tried " [type
number]" but it does not give me correct results. if i just put in the
criteria "3" it gives me the right results but i want to be able to type in
other month ranges.

I hope i made sense.
Thanks!
LTOSH

  #3  
Old December 3rd, 2009, 05:50 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Criteria Filter

Try =[type number] and it should work. If not then =Val([Type number])
should.
Or declare the parameter by opening in design view and clicking on Parameter
and entering [Type number] and Data Type as number. To make sure I do
not make a mistake in typing I copy from the criteria and paste in the
parameter row.

--
Build a little, test a little.


"LTOSH" wrote:

I have a database with a column that figures delinquent payment by how many
months delinquent based on their last payment.

now i am wanting to run a report where i tell it to give me a list that are
3 months delinquent but i want to be able to have a pop-up window to ask me
'by how many months' do i want to search.

how do i put this in the criteria of my query? I have tried " [type
number]" but it does not give me correct results. if i just put in the
criteria "3" it gives me the right results but i want to be able to type in
other month ranges.

I hope i made sense.
Thanks!
LTOSH

  #4  
Old December 3rd, 2009, 06:01 PM posted to microsoft.public.access.queries
LTOSH
external usenet poster
 
Posts: 63
Default Criteria Filter

Great!!! Thanks for quick response...the =Val([Type Number]) worked
perfectly!!!

If i wanted to make it a range criteria..say for example 2 4 how would i
write that??

Leslie

"KARL DEWEY" wrote:

Try =[type number] and it should work. If not then =Val([Type number])
should.
Or declare the parameter by opening in design view and clicking on Parameter
and entering [Type number] and Data Type as number. To make sure I do
not make a mistake in typing I copy from the criteria and paste in the
parameter row.

--
Build a little, test a little.


"LTOSH" wrote:

I have a database with a column that figures delinquent payment by how many
months delinquent based on their last payment.

now i am wanting to run a report where i tell it to give me a list that are
3 months delinquent but i want to be able to have a pop-up window to ask me
'by how many months' do i want to search.

how do i put this in the criteria of my query? I have tried " [type
number]" but it does not give me correct results. if i just put in the
criteria "3" it gives me the right results but i want to be able to type in
other month ranges.

I hope i made sense.
Thanks!
LTOSH

  #5  
Old December 3rd, 2009, 06:34 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Criteria Filter

Best way --
Between [Enter start] AND [Enter end]
You can enter the same number at both prompts for single digit requirement.

--
Build a little, test a little.


"LTOSH" wrote:

Great!!! Thanks for quick response...the =Val([Type Number]) worked
perfectly!!!

If i wanted to make it a range criteria..say for example 2 4 how would i
write that??

Leslie

"KARL DEWEY" wrote:

Try =[type number] and it should work. If not then =Val([Type number])
should.
Or declare the parameter by opening in design view and clicking on Parameter
and entering [Type number] and Data Type as number. To make sure I do
not make a mistake in typing I copy from the criteria and paste in the
parameter row.

--
Build a little, test a little.


"LTOSH" wrote:

I have a database with a column that figures delinquent payment by how many
months delinquent based on their last payment.

now i am wanting to run a report where i tell it to give me a list that are
3 months delinquent but i want to be able to have a pop-up window to ask me
'by how many months' do i want to search.

how do i put this in the criteria of my query? I have tried " [type
number]" but it does not give me correct results. if i just put in the
criteria "3" it gives me the right results but i want to be able to type in
other month ranges.

I hope i made sense.
Thanks!
LTOSH

 




Thread Tools
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 On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.