I am very new to Access and am essentially teaching myself as I build this database, so please excuse me if I am not using the proper naming conventions.
My database is to track information based on properties and needs to be searchable by address. I have a form called "Main" with a text box from which the search is preformed with outputs to a continuous for called "PropQuery" which is populated by a Query of the same name. The user load/updates data from a form called "Entry" which contains a field "StreetName" which contains everything except the house number (West 23rd Street). The problem I have is that the user can enter West as "West", "W" or "W." and Street as "Street", "St" or "St." which can greatly affect the results of a search.
I want to make it so Access will, upon event click, check the "StreetName" field and alter any leading instances of East or West and convert the text to "E" or "W". And any trailing instances of Street to "St." I have a save/lock button where I plan to put the code but I can't figure out how to say iif(StreetName starts with "West " replace with "W "). I know how to accomplsih this in excel but am having trouble in Access
I know I will likely need to enter each possible conditon as its own iff statement and believe I will need about 10-12 to handel the variations so please let me know if there is something I am missing. I know dropdown boxes would work but prefer not to use them.