Solved

Remove characters from property numbers in access

Posted on 2007-03-22
4
185 Views
Last Modified: 2012-05-05
I have a table column that contains the property number, however some of the results are 22A if its a set of flats for eample. I wasnt to be able to split this column into 2 and have only numbers in one which will be property number and the letters into another column which will be called propsuffix. How can i do this. I have used the Mid and InStr to get this table in the first place but not sure if i can use this to get rid of letters only.

Thanks
0
Comment
Question by:martgriff
  • 2
4 Comments
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 250 total points
ID: 18771493
Use:
   Val(PropertyNo)

and

   Right(PropertyNo, 1)

/gustav
0
 
LVL 39

Expert Comment

by:stevbe
ID: 18771567
MyNumber:Val([PropertyNo])
MyLetter: Right([PropertyNo], Len([PropertyNo]) - Len(Val([PropertyNo])))

0
 

Author Comment

by:martgriff
ID: 18771571
Thanks alot for that :D
0
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 18772019
You are welcome!

/gustav
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question