Question : DRopDown Box filter 2nd Selection of DropDown box selection of reluts in DropDown box 2 display filter records on form

Selection of dropdown box 1 filter contentn off dropdown box 2 selection of drop down box 2 does not change the contentn of the displayed form.

I use the after update method to assigned value to the data source of the drop down box 2. Then when I click to select on drop down box 2 the form reverses to record 1 and does not alloe for filtering the contentn of the entire form.

Answer : DRopDown Box filter 2nd Selection of DropDown box selection of reluts in DropDown box 2 display filter records on form

<[cmbFindSatf]? It is blank> it can not be blank..

use this

Me.cmbFindSatf.RowSource = "select [001_New_tbl_MASTER_SATF].Fund, [001_New_tbl_MASTER_SATF].SATF_NO, [001_New_tbl_MASTER_SATF].SATF_AMT, [001_New_tbl_MASTER_SATF].SATF_Revision FROM 001_New_tbl_MASTER_SATF WHERE [001_New_tbl_MASTER_SATF].Fund = " & Me.cboFindFund & " ORDER BY [001_New_tbl_MASTER_SATF].SATF_NO;"

set the following properties of Combo cmbFindSatf

Column Count  4
Bound Column  1


then use this codes

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
Private Sub cmbFindSatf_AfterUpdate()

Dim rs As Object
    'Me.FilterOn = False
       
    Set rs = Me.Recordset.Clone

    rs.FindFirst "[SATF_NO] = " & Me![cmbFindSatf].Column(1)
    If Not rs.EOF Then Me.Bookmark = rs.Bookmark
    Me.Refresh
   
   
End Sub


' if the field [SATF_NO] is Text use this codes

Private Sub cmbFindSatf_AfterUpdate()

Dim rs As Object
    'Me.FilterOn = False
       
    Set rs = Me.Recordset.Clone

    rs.FindFirst "[SATF_NO] = '" & Me![cmbFindSatf].Column(1) & "'"
    If Not rs.EOF Then Me.Bookmark = rs.Bookmark
    Me.Refresh
   
   
End Sub
Random Solutions  
 
programming4us programming4us