* Filter does not work in numbers field (1 Viewer)

kevnaff

Member
Local time
Today, 11:08
Joined
Mar 25, 2021
Messages
141
Hi All.

Just in the past week on my database I have found that I cannot use the * filter in a numbers field. I get an invalid syntax message when trying to do so.

I have used the * filter in a numbers field for years and have not changed anything in the database. I have changed the field to a short text field and the filter works completely fine so there is no issue going forward.

Does anybody know if this was part of an Access update?

Thanks
 

bob fitz

AWF VIP
Local time
Today, 11:08
Joined
May 23, 2011
Messages
4,727
Can you show us the code that produces the error?
 

ebs17

Well-known member
Local time
Today, 12:08
Joined
Feb 7, 2020
Messages
1,946
part of an Access update?
I like that.

The use of wildcards and thus pattern search is processing of strings and has absolutely nothing to do with numbers. For something like this to work, numbers must be internally converted to strings. This hidden datatype-trallala is actually a violation of clean programming.

Give me all salaries with a 1 in them: What is the meaning of the following result?
Code:
FieldX Like "*1*"
1, 10000, 213, 33333331 and so on
 
Last edited:

Pat Hartman

Super Moderator
Staff member
Local time
Today, 06:08
Joined
Feb 19, 2002
Messages
43,275
I'm surprised that a wildcard search EVER worked with a numeric value. Wildcard searches are for text strings not numbers.
 

Users who are viewing this thread

Top Bottom