For some reason, this little piece of code does not seem to work. The code is for two different functions that are both run in the form code 'oncurrent'. I tried combinging the two pieces of code to make one, but it didnt work. This is what the code looks like...
Function CheckMe()
Late2.Visible = Not (OpenClosed = "Closed"
Late.Visible = Not (OpenClosed = "Closed"
End Function
Function Test()
Late.Visible = Not (Late > Late2 And Late2 <> 0)
Late2.Visible = Not (Late2 = "0"
End Function
I have a refresh button on my form that updates the data on the form and saves all of the information. The textboxes that are referenced in the above code, appear when they arent suppose to, appear when they are not suppose to. Appear, then disappear and everything in between. What am i doing wrong?
Basically late and late2 are two different textboxes that have a number of days late calculated from two different dates. The late2 textbox should not be visible when it is equal to "0" (its default value) - however, it appears...sometimes. The rest of the code is pretty self-explanatory if you read it. Please help
Function CheckMe()
Late2.Visible = Not (OpenClosed = "Closed"
Late.Visible = Not (OpenClosed = "Closed"
End Function
Function Test()
Late.Visible = Not (Late > Late2 And Late2 <> 0)
Late2.Visible = Not (Late2 = "0"
End Function
I have a refresh button on my form that updates the data on the form and saves all of the information. The textboxes that are referenced in the above code, appear when they arent suppose to, appear when they are not suppose to. Appear, then disappear and everything in between. What am i doing wrong?
Basically late and late2 are two different textboxes that have a number of days late calculated from two different dates. The late2 textbox should not be visible when it is equal to "0" (its default value) - however, it appears...sometimes. The rest of the code is pretty self-explanatory if you read it. Please help