Well, I think I've figured it out, but it makes no sense...
If I have (actual code):
txtWIPSupplierLT.value = nzz(rs9(57), 0)
txtWIPSupplierMOQ.value = nzz(rs9(58), 0)
txtWIPSupplierUOM.value = Trim(nzz(rs9(59), "EA"))
if works... nzz is a function that 'enhances' the nz function, so if the field is null or blank, it returns the default value.
But if I have:
txtWIPSupplierMOQ.value = nzz(rs9(58), 0)
txtWIPSupplierLT.value = nzz(rs9(57), 0)
txtWIPSupplierUOM.value = Trim(nzz(rs9(59), "EA"))
then 57 and 59 return proper values, but 58 does not.
If I switch it around again to be:
txtWIPSupplierUOM.value = Trim(nzz(rs9(59), "EA"))
txtWIPSupplierMOQ.value = nzz(rs9(58), 0)
txtWIPSupplierLT.value = nzz(rs9(57), 0)
then 59 works, but not 58 or 57...
For some reason it is super fussy about the recordset fields being accessed in order...
No idea why that is the case, but I guess I'll just double check this in the future...
Thanks for the support.
Steve