Skip to main content

AccessTr.neT


Metin Kutusu Birleştirmek Ve Text Özelliği

Metin Kutusu Birleştirmek Ve Text Özelliği

#23
(21/03/2020, 07:08)accessman yazdı: Aktif control bunun yerine mi kullanılmış
evet aslında activecontrol.name yerin ctl.name de kullanılabilirdi yada
Private Sub Form_Load()
Dim ctl As Control
    For Each ctl In Me
        If ctl.Tag = "degistiginde" Then
            ctl.OnChange = "=Degisti()"
        End If
    Next ctl

End Sub

Public Function Degisti()
Dim ctl As Control
Me.Metin0 = ""
    For Each ctl In Me
        If ctl.Tag = "degistiginde" Then
            If ctl.Name = ActiveControl.Name Then _
              Me.Metin0 = Me.Metin0 & "|" & IIf(Len(Nz(Trim(ctl.Text))) = 0, ".", Trim(ctl.Text)) Else _
              Me.Metin0 = Me.Metin0 & "|" & Nz(Trim(ctl), ".")
        End If
       
    Next ctl
Me.Metin0 = Mid(Me.Metin0, 2)

End Function
gibi de
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
Cvp: Metin Kutusu Birleştirmek Ve Text Özelliği - Yazar: berduş - 21/03/2020, 09:32
Task