Question : Finding matching records.

Right now I have an unbound  form called Admin-NEC Finder.    This form has three field on it.
NEC, which is a drawdown, NEC Name which is updated after you choose NEC, and BA which is also updated after you choose NEC.  I know how to update the NEC Name and BA fileds in the After update event.  On the form is an unbound list box.
The row source type for the List box is a table/query and the row source is the following:
SELECT DISTINCTROW [Admin - Crew Query].[Last Name], [Admin - Crew Query].[First Name], [Admin - Crew Query].[Rank/Rate], [Admin - Crew Query].PRD, [Admin - Crew Query].EAOS, [Admin - Crew Query].[Personnel ID Code]
FROM [Admin - Crew Query], [Admin - NEC Details]
WHERE ((([Admin - NEC Details].[NEC])=[Forms]![Admin - NEC Finder]![NEC Finder]))
ORDER BY [Admin - Crew Query].[Last Name], [Admin - Crew Query].[First Name];

What I would like it to do is list the personnel with the NEC that is on the form.  That is what I thought it was doing but it's listing everyone and not just the people that math the NEC on the form.

Make sense?

John

Answer : Finding matching records.

Why a regex ?

1:
2:
3:
4:
if ( set.indexOf("-")>=0 )
{
    elem[ name ] = value;	
}
Random Solutions  
 
programming4us programming4us