editolis
Panathinaikos Fun
- Local time
- Today, 21:35
- Joined
- Oct 17, 2008
- Messages
- 107
Hi All,
I am using the following filter on my form to see some results from a sub form when I press a button.
======================================================================
If Me.chkGrand = -1 Then
varWhere = varWhere & "[GrandSyn] = " & str(Me.GrandSyn) & " AND "
End If
======================================================================
Most of the times the numbers I am looking for are not the same. So I need the closest numbers from my number (Up and Down) if exist.
For example if my number have a value 2,25 and my filter show me 0 results then I need (when I press a second button) to show me the closest numbers (if exist).
So lets say my column on the sub form show me the following numbers: 2,00 – 2,20 - 2,30 – 2,35 then my filterButton have to filter the 2,20 and the 2,30.
I Need a help with the code so the filter show me the closest numbers (Up and Down).
Thank you in advance.
I am using the following filter on my form to see some results from a sub form when I press a button.
======================================================================
If Me.chkGrand = -1 Then
varWhere = varWhere & "[GrandSyn] = " & str(Me.GrandSyn) & " AND "
End If
======================================================================
Most of the times the numbers I am looking for are not the same. So I need the closest numbers from my number (Up and Down) if exist.
For example if my number have a value 2,25 and my filter show me 0 results then I need (when I press a second button) to show me the closest numbers (if exist).
So lets say my column on the sub form show me the following numbers: 2,00 – 2,20 - 2,30 – 2,35 then my filterButton have to filter the 2,20 and the 2,30.
I Need a help with the code so the filter show me the closest numbers (Up and Down).
Thank you in advance.