Private Sub search_list(ByR ef house_details() As house_record)
I don't know what to do. :(
Code:
Dim price_target As Currency
Dim type_target As String
Dim postcode_target As String
Dim counter As Integer
Dim temp_postcode As String
postcode_target = cboOne.Text
price_target = cboTwo.Text 'Type Mismatch "13"
type_target = cboThree.Text
For counter = 1 To 7
temp_postcode = house_details(counter).postcode
temp_postcode = Left(temp_postcode, 3)
If postcode_target = temp_postcode Or postcode_target = "All" Then
If price_target = house_details(counter).price Or price_target = "Any" Then
If type_target = house_details(counter).house_type Or type_target = "Any" Then
OutputForm.txtAddress.Text = house_details(counter).address
OutputForm.txtPostcode.Text = house_details(counter).postcode
OutputForm.txtPrice.Text = house_details(counter).price
OutputForm.txtType.Text = house_details(counter).house_type
OutputForm.txtStatus.Text = house_details(counter).status
Else
MsgBox ("No matches for your search criteria")
End If
End If
End If
Next
End Sub
Comment