I am using a UserForm (New Record) SpinButton to populate a TIME field using ...
... which works perfectly ...
But I now want to read that field back into another UserForm (Update Record) and set SpinButton.Value to the value of the field - but of course the field value is hh:mm whereas the SpinButton value is a numeric ...
Is there a way to reverse the process eg ...
Many thamks for any help anyone can give me ...
VBA Code:
txtReportedTime.value = Format(spnReportedTime / 24 / 60, "hh:mm")
... which works perfectly ...
But I now want to read that field back into another UserForm (Update Record) and set SpinButton.Value to the value of the field - but of course the field value is hh:mm whereas the SpinButton value is a numeric ...
Is there a way to reverse the process eg ...
VBA Code:
spnReportedTime.value = Format(txtReportedTime etc etc)
Many thamks for any help anyone can give me ...