Sharkman1885
Registered User.
- Local time
- Today, 05:40
- Joined
- Dec 5, 2017
- Messages
- 85
Hey all,
I am trying to split my data in a field and convert the returned values into numbers that i can then do some basic calculations with. Ill give you an example of what I need and what my end goal is.
First I have fields that are set up in a specific way as part of an identification code for an animal. These codes are formatted like the following: 2/7/10 (not a date) the length of the string can vary from a null value to 4 numbers. In this format the data is stored as short text.
What I am trying to do is extract the numbers from between the "/" and then add them to get a single number. This single number is another identification format.
I will eventually want to multiply any of these individual numbers that are >9 by 1000 to get a single number. So the final product of the example above would be 1009.
Val() stops at the first "/" and the Split() function wont even run for me. Any help would be much appreciated. I am running Access 2016
I am trying to split my data in a field and convert the returned values into numbers that i can then do some basic calculations with. Ill give you an example of what I need and what my end goal is.
First I have fields that are set up in a specific way as part of an identification code for an animal. These codes are formatted like the following: 2/7/10 (not a date) the length of the string can vary from a null value to 4 numbers. In this format the data is stored as short text.
What I am trying to do is extract the numbers from between the "/" and then add them to get a single number. This single number is another identification format.
I will eventually want to multiply any of these individual numbers that are >9 by 1000 to get a single number. So the final product of the example above would be 1009.
Val() stops at the first "/" and the Split() function wont even run for me. Any help would be much appreciated. I am running Access 2016