The InputBox will only be brought up if InsuranceSold is checked (True) and
Insurance_Premium is Null. Are you sure that the value of Insurance_Premium
is Null and not a zero length string? Try stepping through the code and when
you get to the Do While line, hold the mouse cursor over the text
"Insurance_Premium". The value should popup in a tooltip. If the value could
be either Null or a zero length string, you may want to try
Do While Nz(Insurance_Premium, "") = ""
or, if the value is a number, not text
Do While Nz(Insurance_Premium, 0) = 0
Also, is there anything else called Insurance_Premium, other than the
textbox, that the code may be mistakenly getting a value from? Do you have
Option Explicit in the top of the module where Option Compare Database is
at? If not, add it below or above the Option Compare Database line and then
try to do a compile (Debug|Compile...). If you have any typos that the code
doesn't recognize as controls or declared variables in that module then the
compiler will now find them. I recommend that you add this line to all
modules you've already created and also go to Tools|Options in the code
editor and check the box next to "Require Variable Declaration".