G
Guest
I previously posted this problem:
I'm using Access 2000 and I have a field which contains sample data as
follows: LAHA 2, LAHA 55, HONO 33, HONO 77. With each of these I want to
find the next highest number. But when I sort I get the following, LAHA 1,
LAHA 12, LAHA 2, LAHA 21. Since this field combines text and numbers, is
there anyway to find the next highest number or basically the last number
used. Thanks in advance. Any help is appreciated. Paul
I received several solutions all of which have worked BUT recently stopped
working and are giving me the error message "Data type mismatch in criteria
expression" I haven't change anything with the table or field. I tried it on
a new table and it works fine. HELP
One type of code I was given to use is as follows:
Make a query based on your table. You can make a calculated field in
the query like this...
NumericalPart: Max(Val(Mid([YourField],InStr([YourField]," ")+1)))
..... and another one like this...
PreText: Left([YourField],4)
Any help is greatly appreciated.
Thanks, Paul
I'm using Access 2000 and I have a field which contains sample data as
follows: LAHA 2, LAHA 55, HONO 33, HONO 77. With each of these I want to
find the next highest number. But when I sort I get the following, LAHA 1,
LAHA 12, LAHA 2, LAHA 21. Since this field combines text and numbers, is
there anyway to find the next highest number or basically the last number
used. Thanks in advance. Any help is appreciated. Paul
I received several solutions all of which have worked BUT recently stopped
working and are giving me the error message "Data type mismatch in criteria
expression" I haven't change anything with the table or field. I tried it on
a new table and it works fine. HELP
One type of code I was given to use is as follows:
Make a query based on your table. You can make a calculated field in
the query like this...
NumericalPart: Max(Val(Mid([YourField],InStr([YourField]," ")+1)))
..... and another one like this...
PreText: Left([YourField],4)
Any help is greatly appreciated.
Thanks, Paul