Hello Douglas,
Your code and advice worked great but I was able to get the Promt For
Information to work. But I have this problem now with the Prompt For
Information:
My query looks like this:
Part Number Price Part Desc
AA 2.99 EBOOK-A
FA 3.00 EBOOK-A
BA 2.45 EBOOK-A
CA 1.99 EBOOK-A
My Price field is trimed
Price: Trim([Price $])
and formated in the Criteria field like so
Like (Format("#.##"))
I cannot get my Prompt For Information to list the 2.99 or 3.00. It
will list all the data at one time.
How can I get this Prompt For Information to work?
Like (Format("#.##") & [Enter Building Number or Leave Blank For All]
& "*")
Thank you for your help,
jfcby- Hide quoted text -
- Show quoted text -
My Data Type is numeric. Some of my data is 2.500 and 3.650. I do not
want that data to show only the data with this format 2.00 and 3.00.
I don't think you're going to be able to use a prompt like you're trying,
then. Just because you've formatted the data to 2 decimal points doesn't
change the data to only have two decimal points. It may show as 2.00, but
actually be 1.99997 or 2.0001. As well, you can't use Like with numeric
values: only with Text.
Try something like the following as your Criteria:
BETWEEN [Enter Value] - 0.005 AND [Enter Value] + 0.005
Make sure you've got exactlyt the same text in both places. If you don't,
you'll get prompt twice. You may have to play with the 0.005 value.
--
Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
(no private e-mails, please)- Hide quoted text -
- Show quoted text -