Hello everyone,
I have a question about using the iif statement. I imported a CSV file into a table in Access. No problems with the import. But one of the fields contain a persons non-schedule work days. The field has seven characters 'Y' and 'N', where 'Y' represents the non-schedule day. The format in this field is 'NYYNNNN'. Of course days vary depending on the person. What I'm trying to do is create another field that would print out the days. In other words, the new field would check the non-schedule field and depending on where the 'Y' is positioned for example the second letter is a 'Y' , that would print Sunday and the next 'Y' found it would print Monday. So basically its where the 'Y' is positioned. Here the begining of the week starts on a Saturday. Is using the iif statement the correct statement to use? Or is there a better way?
Thank you.
I have a question about using the iif statement. I imported a CSV file into a table in Access. No problems with the import. But one of the fields contain a persons non-schedule work days. The field has seven characters 'Y' and 'N', where 'Y' represents the non-schedule day. The format in this field is 'NYYNNNN'. Of course days vary depending on the person. What I'm trying to do is create another field that would print out the days. In other words, the new field would check the non-schedule field and depending on where the 'Y' is positioned for example the second letter is a 'Y' , that would print Sunday and the next 'Y' found it would print Monday. So basically its where the 'Y' is positioned. Here the begining of the week starts on a Saturday. Is using the iif statement the correct statement to use? Or is there a better way?
Thank you.