I tend to cast nulls by converting them to stringa and then using the Val() function. Try this:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
lblCalc.Caption = iif(Val(Text71 & "")<Val(Text71a & ""), Round(Val(Text71 & "")), Round(Val(Text71a & "")))
lblCalc1.Caption =...
I use this subroutine a lot to create searchable backups of all of my Access queries. That way, if a table gets refactored, I can update all of my field references through code.
'************************************************
' subCodeSQL
'************************************************...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.