OK I have code to make a where clause this is working fine. Now I have to add another piece of code to filter it even more, this is where I am having trouble
Code that works fine
Now what I need to add code to make a where clause that says something like DVIA is greater then 0 (DVIA >0) but I want to do this by its self and add it back into the where clause
Example
I would then put a line of code in the where clause like this
Please Help me fix the "DVIA >0" Thanks
Code that works fine
Code:
'construct a where clause as required for the list box
'if the Manufactur box is blank then all games will show up on the list
If Mfg = "0" Then Mfg = "*"
If Denom <> "" Then where = "DenomFix LIKE '" & Denom & "*' AND "
If Mfg <> "" Then where = where & "MFRCode LIKE '" & Mfg & "' AND "
If Search <> "" Then where = where & "Description LIKE '*" & Search & "*' AND "
'this will filter the list with only the approved games
Dim Aprvd As String
Aprvd = "Approved"
If Me.AprrovedCheck = True Then where = where & "Approved LIKE'" & Aprvd & "' AND "
'remove the trailing "AND ", if it exists
If Right(where, 4) = "AND " Then where = Left(where, Len(where) - 4)
'and if there is any text in the where clause, add the word 'WHERE '
If where <> "" Then where = "WHERE " & where
'apply the SQL to the rowsource of the List box to Pick a game
Me.List8.RowSource = _
"SELECT Approved, ReelStops As [Corp ID], DenomFix as Denom, Description As Theme, Par, MaxCoins As [Max Coin], PayLines As [Pay Lines]" & _
"FROM MachineTypeQuery " & _
where & _
"ORDER BY Description;"
Now what I need to add code to make a where clause that says something like DVIA is greater then 0 (DVIA >0) but I want to do this by its self and add it back into the where clause
Example
Code:
Private Sub ApplyPropertyWhere()
If PropertyGlobal = "DVIA" Then PropertyWhereGlobal = "DVIA > 0"
I would then put a line of code in the where clause like this
Code:
'This will filter the list with only the property they are from
If Me.PropertyCheck = True Then where = where & PropertyWhereGlobal
Please Help me fix the "DVIA >0" Thanks