Jul 20, 2006 #1 bla1979 MIS Joined Jun 1, 2006 Messages 9 Location 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 Joined Mar 10, 2005 Messages 5,548 Location IN example: Select * from mytable where Left(ZipCode,3)='152' -DNG Upvote 0 Downvote
Jul 20, 2006 #3 bborissov Programmer Joined May 3, 2005 Messages 5,167 Location 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.