I want to replace 0 as No and 1 as Yes when the values get copied to range D5.
I have tried the following. But it's not working.
Code: Select all
Range("D5").Value = rst!REPLACE(Location, 1, 'Yes'), REPLACE(Location, 0, 'No')
Code: Select all
Range("D5").Value = rst!REPLACE(Location, 1, 'Yes'), REPLACE(Location, 0, 'No')
Code: Select all
Range("D5").Value = Replace(Replace(rst!Location, 1, 'Yes'), 0, 'No'))
Code: Select all
Range("D5").Value = Replace(Replace(rst![Gender], "M", "Male"), "F", "Female")
Code: Select all
Range("D5").Value = Replace(Replace(rst!Location, 1, "Yes"), 0, "No")