What Formula Can I use

S

Santi

I was wondering if anyone knew of an Access formula that I can use in a field
that would return the following statement if true.

*if the records in field XX contain any numerical values give me this……..if
not then return all the records in field XX

Basically I want the formula to recognize any numerical values and give it a
name that’s dependent on the value of another table if not then return just
 
J

Jeff Boyce

Santi

In Access, tables store data.

To do the kind of analysis/conversion you describe, consider using a query.

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.
 
K

KARL DEWEY

Create a tblDigits with field Digit containing 0 (zero) through 9 (nine).
Add it to your query like this --
SELECT TableA.Title, InStr([TableA].[Title],[tblDigits].[Digit]) AS Expr1
FROM TableA, TableA AS tblDigits
GROUP BY TableA.Title, InStr([TableA].[Title],[tblDigits].[Digit]);
 

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

Top