Hello, I've tried googling for the past few hours and I can't figure out what I'm doing wrong.
I'm trying to get this to work:
Public Function SMC(Dmd As Long) As String
If Dmd > 50 Then
SMC = "A1"
End If
End Function
Then I want to go to Query builder and say "SMC: SMC([Dmd Qty])"
and have it return the string "A1" from the table [SMC0]![Dmd Qty]) if the Dmd Qty is greater than 50.
I want to a big IF statement or Case because the Expression Builder won't fit the statement.
If I can't get this to work then I can't bother trying the nested IF statements.....
Please help
I'm trying to get this to work:
Public Function SMC(Dmd As Long) As String
If Dmd > 50 Then
SMC = "A1"
End If
End Function
Then I want to go to Query builder and say "SMC: SMC([Dmd Qty])"
and have it return the string "A1" from the table [SMC0]![Dmd Qty]) if the Dmd Qty is greater than 50.
I want to a big IF statement or Case because the Expression Builder won't fit the statement.
If I can't get this to work then I can't bother trying the nested IF statements.....
Please help