I have a simple query, which consists of a few project dates, which in return need to be charged based on completion.
That said, I wanted to create a CHARGE field which would calculate the total charge based on the projects completed (Estimates & Layouts). Just to make this complicated, there are 2 branches that get discounted charges. Below, I have included the if statements that I desire to take affect, I'm not sure how to implement them into calculating my field. That is, I have no idea where to include these if statements for my report.
If [Branch] = "580" Then
[Charge] = "0"
If Month([Estimate Completed]) = Month(Now()) Then
[Charge] = [Charge] + 40
End If
ElseIf [Branch] = "585" Then
[Charge] = "0"
If Month([Estimate Completed]) = Month(Now()) Then
[Charge] = [Charge] + 40
End If
Else
[Charge] = "0"
If Month([Estimate Completed]) = Month(Now()) Then
[Charge] = [Charge] + 100
End If
If Month([Layout Completed]) = Month(Now()) Then
[Charge] = [Charge] + 100
End If
End If
Can somebody please help me with this? Thanks!
That said, I wanted to create a CHARGE field which would calculate the total charge based on the projects completed (Estimates & Layouts). Just to make this complicated, there are 2 branches that get discounted charges. Below, I have included the if statements that I desire to take affect, I'm not sure how to implement them into calculating my field. That is, I have no idea where to include these if statements for my report.
If [Branch] = "580" Then
[Charge] = "0"
If Month([Estimate Completed]) = Month(Now()) Then
[Charge] = [Charge] + 40
End If
ElseIf [Branch] = "585" Then
[Charge] = "0"
If Month([Estimate Completed]) = Month(Now()) Then
[Charge] = [Charge] + 40
End If
Else
[Charge] = "0"
If Month([Estimate Completed]) = Month(Now()) Then
[Charge] = [Charge] + 100
End If
If Month([Layout Completed]) = Month(Now()) Then
[Charge] = [Charge] + 100
End If
End If
Can somebody please help me with this? Thanks!
Comment