Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ZIP code auto-fill

Status
Not open for further replies.

roxannep

Technical User
Jun 20, 2000
69
Okay, this one is pretty basic but I'm about out of tries:

I need to have an entry in the field ZipCode of my Players table retrieve the city and state from LU_Zip which contains that information. Problem: The ZipCode field may contain 5 digits, or 9 depending on if we have the +4. The LU_Zip only has the 5 which is all we need to pull city and state.

What is the best way to attack this one? Using a module at the form field ZipCode, setting up a SQL string, but how do I let it know to compare only the first 5 digits (this is a text field).

 
Field
Lu_Zip

Criteria:
Left([ZipCode], 5)


MichaelRed
redmsp@erols.com

There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top