Hi,
The reason you're having the issue is how you've set up your IF statements. The following Code segment contains your IF statements (I removed some of the text to remove clutter, since it's the IF statement layout I'm trying to emphasize):
When your first IF statement is FALSE -- that is, Trim(Me.txcustname.Value) <> "" -- then all the rest of the inner code doesn't get executed. That's how nested IF statements work (which is what you're doing)
At the end of your if statements, you have a whole bunch of End Ifs, one for each of your preceeding IF statements.
The layout I'd recommend is this (note the End Ifs are in different places):
S
Bookmarks