K
KsFireworksGal
Here is my code - I am trying to put this in a report so that the value of
the item is based on the field packingtype (each, pack, box, brick) and
depending on the type will determing the price - i then need to take that
value of the item and multiply it by the quanity returned to get a return
value. I have tried this in query mode - does not work - I dont want to have
to create a new table just for calculations but will if i must. Any help is
appericated.
VALUEOFITEM() As Currency
If PACKINGTYPE = "EACH" Then
VALUEOFITEM = KSEACHPRICE
ElseIf PACKINGTYPE = "PACK" Then
VALUEOFITEM = KSPACKPRICE
ElseIf KSPACKPRICE = "BOX" Then
VALUEOFITEM = KSBOXPRICE
ElseIf PACKINGTYPE = "BRICK" Then
GetPriceOfItem = KSBRICKPRICE
Else
End If
the item is based on the field packingtype (each, pack, box, brick) and
depending on the type will determing the price - i then need to take that
value of the item and multiply it by the quanity returned to get a return
value. I have tried this in query mode - does not work - I dont want to have
to create a new table just for calculations but will if i must. Any help is
appericated.
VALUEOFITEM() As Currency
If PACKINGTYPE = "EACH" Then
VALUEOFITEM = KSEACHPRICE
ElseIf PACKINGTYPE = "PACK" Then
VALUEOFITEM = KSPACKPRICE
ElseIf KSPACKPRICE = "BOX" Then
VALUEOFITEM = KSBOXPRICE
ElseIf PACKINGTYPE = "BRICK" Then
GetPriceOfItem = KSBRICKPRICE
Else
End If