Hello, trying to implement a global variable iTable that I can increment/decrement and use its value anytime needed.
1. globalvariables module:
2. One of my subs that change its value:![]()
Please Login or Register to view this content.
3. Sub where I call it with a Select Case![]()
Please Login or Register to view this content.
Now, altough I enter txtProduct1 TextBox, and my iTable is changed to 3, when the code reachs the Select Case, it always goes Case 1 and displays "ERROR" MsgBox that I created. I ask you why?![]()
Please Login or Register to view this content.
I tried a MsgBox on txtProduct1_Enter and it give me iTable = 3.
Bookmarks