my table contains 25000 records with 12 fields. it is an autoparts
database. the first field is the autopart code and the remaining 11
fields consist of description, genuine numbers, cross references,
etc. i want to use the unbound textbox of my form like a search
engine: if i enter a code or part of a code i want it to look up the
25000 records and the 12 fields to find a match.
autopart genuine numbers and cross references codes like ferodo,
brembo, etc consist of a combination of letters,symbols and numbers
that could be anywhere in the field. (examples: 11S33BC88, FDB320,
08.3590.62, 11000-36000, etc.
could i achieve my goal to use this textbox as the desired
"powerfull" tool?
? ??????? "Mike Painter" ???????:
What do you want to do with the letter once found?
If 123<greekletter>456 is found do you want to generate
123<latinletter>456? and vice versa?
first of all thank you for your reply.
"5860H5212" with Greek is different from "5860H5212" with latin,
there can be more than one letter (e.g. 3680ABC90) and yes there
can be a mix of letter in any given code.
from what i understand it is quite complex and the problem is i am
new to sql. i need ypu to guide me step by step through this!
? ??????? "Mike Painter" ???????:
angie wrote:
i have an unbound text box in my form. the user can enter
anything there and on enter runs a query that returns records
that contain part or the entire value entered.
this is the criteria i have entered in the deisred field of my
query: Like "*" & [Forms]![Form2-WAREHOUSE]![CODE SEEK] & "*".
problem statement: each record in my table field contains a
combination of letters, numbers and characters. the letters may be
either greek or latin alphabet.
e.g if i enter "5860H5212" the letter "H" can be either greek or
latin. is there a way to enter a code that will seek for both
characters?
Is "5860H5212" with Greek, different from "5860H5212" with latin?
Can there be more than one letter?
If yes can there be a mix of letter in any given code?
You can loop through the code with the Mid function and replace the
letter with it's other possible value then construct a string with
then "OR" ed together.
If there is only one letter it's simple.
If all the letters are the same language then you have 2 N values
to construct.
If they can vary then two letters gives four codes LL,GG,GL, LG.
and it goes up from there
N letters gives 2^N choices.