split field data

A

Alex

Hi
The right hand data of Field1 is a numeric number consisting of either 3, 4
or 5 characters. I need to update field3 with this information

Is there an easy way to do this please

thanks
A
 
K

kingston via AccessMonster.com

Since I cannot assume that the fields are consistent in any other manner, I
can only provide you a three step solution:

Make an update query to write to field 3. Make the criteria Is Null (I
assume that Field 3 starts out as Null) and make the update this:

IIF(IsNumeric(Right(Field1,5)),Right(Field1,5),Null)

Run the query and change the update to:

IIF(IsNumeric(Right(Field1,4)),Right(Field1,4),Null)

Run the query and change the update to:

IIF(IsNumeric(Right(Field1,3)),Right(Field1,3),Null)
 

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