icemonster
Registered User.
- Local time
- Today, 12:21
- Joined
- Jan 30, 2010
- Messages
- 502
Code:
Function startRowSourceZipCode()
strStartSql1 = "SELECT qry_city_state_zipcode_01.id_us_zip_code, " _
& "qry_city_state_zipcode_01.uszipcod_city, " _
& "qry_city_state_zipcode_01.usstacod_abbreviation, " _
& "qry_city_state_zipcode_01.usstacod_state_name " _
& "FROM qry_city_state_zipcode_01 "
strWhereSql1 = "WHERE qry_city_state_zipcode_01.uszipcod_city LIKE '*" & Me.cbocity & "*'"
strSortOrderSql1 = "ORDER BY qry_city_state_zipcode_01.id_us_zip_code ;"
strSQL1 = strStartSql1 & strWhereSql1 & strSortOrderSql1
With Me.cbozipcode
.RowSource = strSQL1
.Value = Null
End With
End Function
it's so odd, about an hour ago it was working. what this does is when the city is selected on the combo box (cbocity) it will filter the zip codes necessary for it. any ideas why it stopped? rebooted, restarted and even re typed the code.