DMin Question (1 Viewer)

hascons

Registered User.
Local time
Today, 08:07
Joined
Apr 20, 2009
Messages
58
Does anyone know if you can use 2 Parameters in a Dmin Function.

For Example:

Public Function ClosestToTiebreakerPoints(WeekNum As Integer, MostWins As Integer) As Double

ClosestToTiebreakerPoints = DMin("TieBreakerPoints", "WeeklyCountWins", ("Week =" & WeekNum & ")And("NumberWins =" & MostWins & ""))

End Function

I Put Parenthesis around the Parameter portion for ease of reading.

hascons
 

hascons

Registered User.
Local time
Today, 08:07
Joined
Apr 20, 2009
Messages
58
I Did Figure this out.
I had an extra ( " ) in front of the second parameter (NumberWins, in this case)
 

Users who are viewing this thread

Top Bottom