left three characters from string using query

viveleroi

Registered User.
Local time
Today, 09:09
Joined
Sep 6, 2004
Messages
20
In MySQL I can use the LEFT(3, field_name) command, but I essentially want access to pull all records from a table where the the first three digits of a number field match those pre-selected by a form drop down.

This database is in Access 97. Is there a way to compare the first x number of digits using SQL only, or do I need to run each line through code first, and then check it (I really don't want to do that)?


example numbe rin field:

123456789

SQL checks to see if 123 matches value selected on a form.
 

Users who are viewing this thread

Back
Top Bottom