Exit Function Not Working

D

digihoo

Hi,

In the Item_Write function of a custom form, I have two nested If
statements. in the inner If statement is an "Exit Function" statement
that the form seems to be ignoring (?)

eg,

If (something) Then
---code
---code
If (something else) Then
---code
---Exit Function
End If
End If

Somehow, even though I am sure it is meeting the second If statement
(it is executing the first line of the second If statement), it is
ignoring the Exit Function command and executing the rest of the code.

Any help would be appreciated. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top