Good day,
Can anyone please help me to convert the following excel formula to an access formula:
=DATE(LEFT(B1,2)+IF(LEFT(B1,2)<RIGHT(YEAR(TODAY()),2),2000,1900),MID(B1,3,2),MID(B1,5,2))
B1 must be [IdNumber] in access - This is a 13 digit South African Id Number. This Excel formula extracts the date of birth (1975-02-22) from this number: 7502225048088
It also compensates if a person was born in 1900's and 2000's. Any other sugestions would be helpfull.
Above formula works in excel if you put the formula in cell C1 and the Id number in B1 (formatted as text to compensate for leading 00). I need something in access that does the same.
Thank you
SGT
Bookmarks