I really need help... I have 2 tables, they have relationship via object name. Then i made forms from that tables, in first form you have entered object name and then usig combo box indicate that object type. At the second form using combo box you already can choose object name from first form. And now here is a problem how to write VBA code, if in second form i choose object name witch type (in first form combo box) is "TR" i wouldnt see some fields.
Now my code looks like that, but problem is that it understand just the last saved type in that first form it doesnt change
Private Sub Objecttype_AfterUpdate()
If Form_Pagrindine.cbotipas.Value = "TR" Then
GPIK.Visible = False
Else
GPIK.Visible = True
End If
End Sub
Now my code looks like that, but problem is that it understand just the last saved type in that first form it doesnt change
Private Sub Objecttype_AfterUpdate()
If Form_Pagrindine.cbotipas.Value = "TR" Then
GPIK.Visible = False
Else
GPIK.Visible = True
End If
End Sub