i have a combo box and a text box in my combo box drop down list(School) i have 3 items ,staff, department and facility..in my text box(Amount) i enter a value when i click on save button it automatically calculate the the value entered in my textbox with the value assign to each school values
example staff =4 department =6 and facility =12..if i select staff and enter 3 my Amount should be =12 which save on my database
i have my code below but it does not display the right result..what wrong with my code
example staff =4 department =6 and facility =12..if i select staff and enter 3 my Amount should be =12 which save on my database
i have my code below but it does not display the right result..what wrong with my code
VB.NET:
dim x as integer
if Me.SchoolDesc = 'Staff' then
me.amount = Staff * 4
x = Me.Amount
end if