Hi Laurel,
It looks like you are reading two different databases, as Neil suggested. If you compare the attachments you can see that the preferred field is check in the last row of the datawindow painter screenshot and not so in the last row of the runtime screenshot..