N
Nad
Hi guys!
I put a tab control on my form with two pages.Recordsource of the form a
table.
I put two fields TecoDate & Budget from the table on two different page of
the tab control.
I wrote the below code in the Form Load Event to lock the textbox if there
is any data (to prevent users to change already filled data , if there is no
data they can put the data)
If Me.TxtTecoPlanDate.Value <> " " Then Me.TxtTecoPlanDate.Locked = True
If Me.TxtBudget.Value <> " " Then Me.TxtBudget.Locked = True
But the problem is that when i open the form it locks the textbox even if
there is no data (Locked for all).
Please advice.
I put a tab control on my form with two pages.Recordsource of the form a
table.
I put two fields TecoDate & Budget from the table on two different page of
the tab control.
I wrote the below code in the Form Load Event to lock the textbox if there
is any data (to prevent users to change already filled data , if there is no
data they can put the data)
If Me.TxtTecoPlanDate.Value <> " " Then Me.TxtTecoPlanDate.Locked = True
If Me.TxtBudget.Value <> " " Then Me.TxtBudget.Locked = True
But the problem is that when i open the form it locks the textbox even if
there is no data (Locked for all).
Please advice.