Ok, new question.
I want to make the database (a simple table) loop through every record in the field "Last4SSno" and extract the last 4 digits from "SSno" if the "Last4SSno" field is blank, or if the 4 digits in Last4SSno does not match the last 4 digits of "SSno". I have google searched for hours, but I cannot even think of how to phrase a google query right now, and I'm getting a little fried on the idea. I would prefer to do this on database open, but if it has to be done some other way, that is acceptable as well, I'm just adept enough to modify the code to my own uses, it's just the *Private sub OnDBOpen* part and the *DoCMD.RunSQL Insert * in Last4SSno Right("SSno", 4) where "Last4SSno" isnull* part that I cannot seem to find help on(I think).
I could have the whole problem backwards, I just don't know anymore.
I want to make the database (a simple table) loop through every record in the field "Last4SSno" and extract the last 4 digits from "SSno" if the "Last4SSno" field is blank, or if the 4 digits in Last4SSno does not match the last 4 digits of "SSno". I have google searched for hours, but I cannot even think of how to phrase a google query right now, and I'm getting a little fried on the idea. I would prefer to do this on database open, but if it has to be done some other way, that is acceptable as well, I'm just adept enough to modify the code to my own uses, it's just the *Private sub OnDBOpen* part and the *DoCMD.RunSQL Insert * in Last4SSno Right("SSno", 4) where "Last4SSno" isnull* part that I cannot seem to find help on(I think).
I could have the whole problem backwards, I just don't know anymore.