Skip to main content

AccessTr.neT


Saat Ücretini Textboxta Göstermek

Saat Ücretini Textboxta Göstermek

#2
forma aşağıdaki gibi bir fonksiyon ekleyip istediğiniz yerden çağırabilirsiniz mesela çıkış saatiinden çıkınca yada çalıştığı saat metin kutusuna girince olaylarından çağrılabilir
Function Hesapla()
If Len(TextBox2) > 0 And Len(TextBox3) > 0 Then
BasSure = Split(TextBox3, ":")(0) * 60 + Split(TextBox3, ":")(1) - (Split(TextBox2, ":")(0) * 60 + Split(TextBox2, ":")(1))
TextBox4 = Format(BasSure \ 60, "00") & ":" & Format(BasSure Mod 60, "00")
Ucret = IIf(Len(TextBox1) > 0, TextBox1, 0)
TextBox5 = Round(Ucret * (BasSure / 60), 2)
End If
End Function
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
Saat Ücretini Textboxta Göstermek - Yazar: m_demir - 25/03/2020, 13:39
Cvp: Saat Ücretini Textboxta Göstermek - Yazar: berduş - 25/03/2020, 15:02