11-02-2024, 18:31
Dim i As Integer
Dim toplam As Integer
For i = 1 To 31
strnum1 = FormatNumber(i, "00")
If Me("txt" & strnum1).Enabled = True And Me("txt" & strnum1) <> 0 Then
toplam = toplam + Val(Nz(Me("txt" & strnum1), 0))
End If
Next i
Hocam yukarıdaki kod bloğu formu panel içine alınca çalışmıyor.txt leri açmıyor.
Yani tüm formlar bir panel içinde açılınca...
Dim toplam As Integer
For i = 1 To 31
strnum1 = FormatNumber(i, "00")
If Me("txt" & strnum1).Enabled = True And Me("txt" & strnum1) <> 0 Then
toplam = toplam + Val(Nz(Me("txt" & strnum1), 0))
End If
Next i
Hocam yukarıdaki kod bloğu formu panel içine alınca çalışmıyor.txt leri açmıyor.
Yani tüm formlar bir panel içinde açılınca...

