[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

05/21/2009 at 08:32AM PDT, ID: 24428169 | Points: 50
[x]
Attachment Details

query getting mismatch in criterea error in ms access

Asked by pele4483 in Microsoft Access Database

I have a query that uses an expresion Replace([Part#],"-OSP","") AS PartNo in a query. When i try to add a criterea to the expression I get a "data type mismatch in criterea expression" error.  I want to make a decison on PartNO - can this not be done
1:
2:
3:
4:
SELECT [GD MAIN].MainID, [GD MAIN].[Part#], Replace([Part#],"-OSP","") AS PartNo, [GD MAIN].[PO Number], [GD MAIN].[Open Releases], [GD MAIN].ShipmentNo, [GD MAIN].NeedByDate, CDate([NeedBydate]) AS NBYDate, [GD MAIN].[Rel Qty]
FROM [GD MAIN]
WHERE ((Not ([GD MAIN].ShipmentNo) Is Null) AND ((CDate([NeedBydate])) Between #1/1/2007# And Get_Date()))
ORDER BY [GD MAIN].[Part#], [GD MAIN].[Open Releases];
[+][-]05/21/09 08:38 AM, ID: 24442679

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/09 09:25 AM, ID: 24443198

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/21/09 09:37 AM, ID: 24443318

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/09 01:46 PM, ID: 24445706

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/09 02:02 PM, ID: 24445885

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/09 02:08 PM, ID: 24445922

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/21/09 02:26 PM, ID: 24446072

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91 - Hierarchy / EE_QW_3_20080625