Skip to main content

AccessTr.neT


Formda Arkaplan Renginin Değere Göre Değişmesi

Formda Arkaplan Renginin Değere Göre Değişmesi

#7
Merhaba,

form3'deki kodu aşağıdaki ile değiştirerek deneyiniz.

Private Sub Ayrıntı_Paint()
If DCount("*", "Form3 Sorgu") > 0 Then
   If Me.CİNSİYETİ = "ERKEK" Then
       Me.ADI.BackColor = 16777111
       Me.SOYADI.BackColor = 16777111
       Me.CİNSİYETİ.BackColor = 16777111
   Else
       Me.ADI.BackColor = 12698111
       Me.SOYADI.BackColor = 12698111
       Me.CİNSİYETİ.BackColor = 12698111
   End If
End If
End Sub
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: Formda Arkaplan Renginin Değere Göre Değişmesi - Yazar: ozanakkaya - 07/04/2017, 23:20