Notice: Undefined offset: 2 in /home2/icentarb/public_html/icentar/classes/class.permissions.php on line 735
Private Sub Form_Current()
Call StausPolja
End Sub
Private Sub StatusKupca_AfterUpdate()
Call StausPolja
End Sub
Function StausPolja()
Dim StatusK, Ctl As Control, Frm As Form
Dim Kljuc As Boolean, Znak As Boolean
Set Frm = Me.Form
StatusK = Trim(Me.StatusKupca)
If Format$(StatusK) = "" Then
Kljuc = False
Else
Kljuc = True
End If
For Each Ctl In Frm.Controls
If Ctl.ControlType = acTextBox Then
Ctl.Enabled = Kljuc
Znak = Right(Ctl.Controls.Item(0).Caption, 1) = "*"
If Znak = False Then
Ctl.Controls.Item(0).Caption = Ctl.Controls.Item(0).Caption & "*"
End If
If StatusK = "1" Then
If Ctl.Name <> "ImeKupca" Then
Ctl.Controls.Item(0).Ca