Una famiglia di sistemi di gestione per database relazionali di Microsoft progettati per semplificare l'uso.
Nel controllo dello straordinario feriale notturno puoi impostare =getStrFerNott_Data()
e, nel codice aggiungi la funzione:
Function getStrFerNott_Data() As String
Dim wOre As Single
If [txtFestivo] Or _
[getStraordinari] = 0 Then
getStrFerNott_Data = ""
Else
If [getStraordinari] > Nz([getStrFerDiu]) Then
wOre = [getStraordinari] - Nz([getStrFerDiu])
If wOre > 0 Then
getStrFerNott_Data = Int(wOre) & ":" & Nz(Round((wOre - Int(wOre)) * 60), "00")
Else
getStrFerNott_Data = ""
End If
End If
End If
End Function
Nel controllo dello straordinario festivo notturno puoi impostare =getStrFestNott_Data()
e, nel codice aggiungi la funzione:
Function getStrFesNott_Data() As String
Dim wOre As Single
If [txtFestivo] And _
[getStraordinari] > 0 Then
If [getStraordinari] > Nz([getStrFestDiu]) Then
wOre = [getStraordinari] - Nz([getStrFestDiu])
If wOre > 0 Then
getStrFesNott_Data = Int(wOre) & ":" & Nz(Round((wOre - Int(wOre)) * 60), "00")
Else
getStrFesNott_Data = ""
End If
Else
getStrFesNott_Data = ""
End If
End If
End Function
Fammi sapere
Mimmo