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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

search form



 
 
Thread Tools Display Modes
  #1  
Old March 3rd, 2008, 07:07 PM posted to microsoft.public.access.forms
misschanda via AccessMonster.com
external usenet poster
 
Posts: 111
Default search form

hello
I am having issues with the size range search on my form. I would like to be
able to search within a range of diameters. the form is based off query that
looks like following.

SELECT AllAnalysis.AutoNumber, AllAnalysis.[Product Name], AllAnalysis.
Diametermeters, AllAnalysis.[Product Application], AllAnalysis.[TSR NO],
AllAnalysis.Diametermeters AS [Size], AllAnalysis.Supplier, AllAnalysis.[TSR
NO], AllAnalysis.[Polymer Abbreviation], AllAnalysis.Denier, AllAnalysis.
[MaxLoad(lbs)], AllAnalysis.[Tenacity(g/den)], AllAnalysis.[StrainAtBreak(%)],
AllAnalysis.[Young'sModulus(gf/den)], AllAnalysis.[StrainAt5g/tex(%)],
[product name]=Forms![Alternative Search Form]![txtproduct name] Or Forms!
[Alternative Search Form]![txtproduct name] Is Null AS Expr1, [Product
Application]=Forms![Alternative Search Form]![cboproduct application] Or
Forms![Alternative Search Form]![cboproduct application] Is Null AS Expr2
FROM AllAnalysis
WHERE ((([product name]=[Forms]![Alternative Search Form]![txtproduct name]
Or [Forms]![Alternative Search Form]![txtproduct name] Is Null)=True) AND ((
[Product Application]=[Forms]![Alternative Search Form]![cboproduct
application] Or [Forms]![Alternative Search Form]![cboproduct application] Is
Null)=True) AND (([diametermeters]=[forms]![alternative search form]!
[txtdiametermeters] Or [forms]![alternative search form]![txtdiametermeters]
Is Null)=True) AND (([supplier]=[Forms]![Alternative Search Form]!
[cbosupplier] Or [Forms]![Alternative Search Form]![cbosupplier] Is Null)
=True) AND (([polymer abbreviation]=[Forms]![Alternative Search Form]!
[cbopolymer abbreviation] Or [Forms]![Alternative Search Form]![cbopolymer
abbreviation] Is Null)=True) AND (([tsr no]=[Forms]![Alternative Search Form]!
[txttsr no] Or [Forms]![Alternative Search Form]![txttsr no] Is Null)=True));


the form is only returning data based on the min diameter entered and not
between the mim and max

anyhelp is appreciated.

--
Message posted via http://www.accessmonster.com

  #2  
Old March 3rd, 2008, 09:01 PM posted to microsoft.public.access.forms
Golfinray
external usenet poster
 
Posts: 1,597
Default search form

Try www.fontstuff.com Some very good search functions explained.

"misschanda via AccessMonster.com" wrote:

hello
I am having issues with the size range search on my form. I would like to be
able to search within a range of diameters. the form is based off query that
looks like following.

SELECT AllAnalysis.AutoNumber, AllAnalysis.[Product Name], AllAnalysis.
Diametermeters, AllAnalysis.[Product Application], AllAnalysis.[TSR NO],
AllAnalysis.Diametermeters AS [Size], AllAnalysis.Supplier, AllAnalysis.[TSR
NO], AllAnalysis.[Polymer Abbreviation], AllAnalysis.Denier, AllAnalysis.
[MaxLoad(lbs)], AllAnalysis.[Tenacity(g/den)], AllAnalysis.[StrainAtBreak(%)],
AllAnalysis.[Young'sModulus(gf/den)], AllAnalysis.[StrainAt5g/tex(%)],
[product name]=Forms![Alternative Search Form]![txtproduct name] Or Forms!
[Alternative Search Form]![txtproduct name] Is Null AS Expr1, [Product
Application]=Forms![Alternative Search Form]![cboproduct application] Or
Forms![Alternative Search Form]![cboproduct application] Is Null AS Expr2
FROM AllAnalysis
WHERE ((([product name]=[Forms]![Alternative Search Form]![txtproduct name]
Or [Forms]![Alternative Search Form]![txtproduct name] Is Null)=True) AND ((
[Product Application]=[Forms]![Alternative Search Form]![cboproduct
application] Or [Forms]![Alternative Search Form]![cboproduct application] Is
Null)=True) AND (([diametermeters]=[forms]![alternative search form]!
[txtdiametermeters] Or [forms]![alternative search form]![txtdiametermeters]
Is Null)=True) AND (([supplier]=[Forms]![Alternative Search Form]!
[cbosupplier] Or [Forms]![Alternative Search Form]![cbosupplier] Is Null)
=True) AND (([polymer abbreviation]=[Forms]![Alternative Search Form]!
[cbopolymer abbreviation] Or [Forms]![Alternative Search Form]![cbopolymer
abbreviation] Is Null)=True) AND (([tsr no]=[Forms]![Alternative Search Form]!
[txttsr no] Or [Forms]![Alternative Search Form]![txttsr no] Is Null)=True));


the form is only returning data based on the min diameter entered and not
between the mim and max

anyhelp is appreciated.

--
Message posted via http://www.accessmonster.com


 




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 01:19 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.