Jul 20, 2006 #1 bla1979 MIS Jun 1, 2006 9 US I have a table of zip codes, I want to be able to search by only the first 3 numbers, but I want the user to input all 5. Anyone have a clue.
I have a table of zip codes, I want to be able to search by only the first 3 numbers, but I want the user to input all 5. Anyone have a clue.
Jul 20, 2006 #2 DotNetGnat Programmer Mar 10, 2005 5,548 IN example: Select * from mytable where Left(ZipCode,3)='152' -DNG Upvote 0 Downvote
Jul 20, 2006 #3 bborissov Programmer May 3, 2005 5,167 BG Code: SELECT * FROM .... ... WHERE ZipCodeField LIKE LEFT(UserInputCode,3)+'%' Borislav Borissov VFP9 SP1, SQL Server 2000/2005. Upvote 0 Downvote
Code: SELECT * FROM .... ... WHERE ZipCodeField LIKE LEFT(UserInputCode,3)+'%' Borislav Borissov VFP9 SP1, SQL Server 2000/2005.