A series of lanthanide-based coordination polymers {[Yb1−xErx(4,4′-bpdo)3(H2O)2](CF3SO3)3}∞ were synthesised where 4,4′-bpdo = 4,4′-bipyridine-N,N′-dioxide with x = 0, 0.05, 0.2, 0.5 or 1. Upconversion measurements reveal visible emission in the red, green, and blue regions corresponding to emission from the Er(iii) cation upon two and three-photon excitation.