I have a form - frmCustomer. If the user clicks on the "Search" button a new form - frmCustSearch opens, without frmCustomer being closed.
In the declaration section of frmCustomer, I declare a variable to store the customer code selected in frmCustSearch:
When I try and assign a value to PassCustCode in frmCustSearch, I get a compile error - variable not found.
I thought declaring a variable as public made it visible in the entire project?
In the declaration section of frmCustomer, I declare a variable to store the customer code selected in frmCustSearch:
Code:
Public PassCustCode As Integer
When I try and assign a value to PassCustCode in frmCustSearch, I get a compile error - variable not found.
I thought declaring a variable as public made it visible in the entire project?