By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,729 Members | 1,145 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,729 IT Pros & Developers. It's quick & easy.

Nested IF problem (MS Access VB)

P: 3
The most unprobable issue will just pop-up when last expected..even as 'innocent' as a nested IF statement !

I am experiencing Nested IF statements problem chen coding. e.g:
Expand|Select|Wrap|Line Numbers
  1. IF (meets a major condition) then
  2.    if (another condition) then
  3.      :
  4.      :
  5.    else
  6.      :
  7.      :
  8.    end if
  9. ELSE
  10.      :
  11. END IF
Simple situation but the compiler does not seem to be getting the nested if concept :-X and i get the error that there's this ELSE without IF statement.
Many thanks for helping me resolve this.
Jun 11 '07 #1
Share this Question
Share on Google+
2 Replies

P: 52
Can you post your code for us to take a look at?


Jun 11 '07 #2

Expert Mod 15k+
P: 31,770
If it were as you described it, then you would have no issue.
As theAybaras says, if you want us to help you find out what's wrong with your code, you're going to have to post it in here. Start off with the WHOLE of the procedure that the problem occurs in, even if you don't see the relevance of some of the code.
Don't worry though, we've most of us been there and found some of the strange things that cause these errors.
Jun 11 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.