Quote:
The code might be the same but its relying on a variable called "bi.bmiHeader" which could have been set to DIFFERENT values for each of those forms.
I would output this variable before the select statment especially for bi.bmiHeader.biHeight and see if you get the same value.
I wouldn't be so quick to even THINK that VB is "deciding" to do anything differently between forms.
I have to say this again... 95% of problems are HUMAN ERROR or HUMAN OVERSIGHT... NOT the computer deciding "Well, *THIS* time I am going to ignore my coding and do something different
Until you get the idea out of your head that VB is doing something wrong these kinds of problems will keep coming up and keep stumping you ;)