S
sabrown
I have created a custom function in Access as a Public Function and
saved it. Yet when I try to use the function Access refuses to
recognize it.
Option Compare Database
Public Function SUGGMDL(Cost As Currency, EAU As Long, Optional COMCDE
As String)
If COMCDE = "9SA" And EAU >= 1000 Then
SUGGMDL = "BIN"
Else
If Cost >= 7.35 And EAU >= 1000 Then
SUGGMDL = "SMI"
Else
If Cost < 7.35 And EAU >= 1000 Then
SUGGMDL = "ARP"
Else
SUGGMDL = "DIS"
End If
End If
End If
End Function
Scott
saved it. Yet when I try to use the function Access refuses to
recognize it.
Option Compare Database
Public Function SUGGMDL(Cost As Currency, EAU As Long, Optional COMCDE
As String)
If COMCDE = "9SA" And EAU >= 1000 Then
SUGGMDL = "BIN"
Else
If Cost >= 7.35 And EAU >= 1000 Then
SUGGMDL = "SMI"
Else
If Cost < 7.35 And EAU >= 1000 Then
SUGGMDL = "ARP"
Else
SUGGMDL = "DIS"
End If
End If
End If
End Function
Scott