![]() |
| |||||||
| Sponsored Links |
![]() |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| ||||
| ||||
| Hi,.. I'm trying to add filters to a continuous form but don't want to change the undelying query,.. So i've tried using the DoCmd.ApplyFilter in the after update of a combo Below is the closest i can get,. when i say close at least it filters the records,.. but filters them all out ![]() The example i'm using is simply filtering a text field field,.. the combo is in the form header. DoCmd.ApplyFilter , ("fieldname= ' " & Combo.Value & " ' ") Any ideas,.. i guess this will be something obvious
__________________ If i helped you, make me famous by clicking the ![]() |
| Sponsored Links |
|
#2
| ||||
| ||||
| Say your combobox was me.combo18, after update, put this: Code: Dim mystr As String Dim FltrStr As String mystr = Nz(Me.Combo18, "") FltrStr = "Fieldname ='" & mystr & "'" DoCmd.ApplyFilter , FltrStr Last edited by sbenj69; June 6th, 2008 at 12:03 PM. |
| The Following User Says Thank You to sbenj69 For This Useful Post: | ||
AOG123 (June 6th, 2008) | ||
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|