T
Tyler
I have already created a working search form using three text boxes.
i would like to add a combo box to the search form.
I currently have the code
Dim strWhere As String
strWhere = "1=1 "
If Not IsNull(Me.txtRegPlan) Then
'assuming Reg Plan is text
strWhere = strWhere & " AND [Reg Plan] =""" & Me.txtRegPlan & """ "
End If
If Not IsNull(Me.txtPlanBlock) Then
strWhere = strWhere & " AND [Plan Block] =""" & Me.txtPlanBlock &
""" "
End If
If Not IsNull(Me.txtPlanLot) Then
'assuming Plan Block is text
strWhere = strWhere & " AND [Plan Lot] =""" & Me.txtPlanLot & """ "
End If
DoCmd.Close
DoCmd.OpenForm "Main", , , strWhere
The field I would like to add is called Municipality. Does anyone have
any suggestions on how I would go about doing this?
thanks
i would like to add a combo box to the search form.
I currently have the code
Dim strWhere As String
strWhere = "1=1 "
If Not IsNull(Me.txtRegPlan) Then
'assuming Reg Plan is text
strWhere = strWhere & " AND [Reg Plan] =""" & Me.txtRegPlan & """ "
End If
If Not IsNull(Me.txtPlanBlock) Then
strWhere = strWhere & " AND [Plan Block] =""" & Me.txtPlanBlock &
""" "
End If
If Not IsNull(Me.txtPlanLot) Then
'assuming Plan Block is text
strWhere = strWhere & " AND [Plan Lot] =""" & Me.txtPlanLot & """ "
End If
DoCmd.Close
DoCmd.OpenForm "Main", , , strWhere
The field I would like to add is called Municipality. Does anyone have
any suggestions on how I would go about doing this?
thanks