When affirmation may be made

Va. Code Ann. § 49-9, under Chapter 1. Oaths and Affirmations..

Va. Code Ann. § 49-9

If any person required to take an oath shall declare that he has religious scruples as to the propriety of taking it, he may make a solemn affirmation, which shall in all respects have the same effect as an oath.