A
ADB_Seeker
I have a query that prompts the user for the install number. I also need it
to omit any records that have "obsolete" in any of the revision fields.
Following is my SQL code.
If I include the Not Like "*obs*" criteria, the install number is not
included in the report.
If I exclude the Not Like "*obs*" criteria, the install number is included
in the report, however all records with a revision of Obsolete also show up.
SELECT [Engineering Drawing Numbers].MasterProject, [Engineering Drawing
Numbers].[INSTALL NUMBER], [Engineering Drawing Numbers].[INSTALL REV],
[Engineering Drawing Numbers].[INSTALL DESCRIPTION], [Engineering Drawing
Numbers].[SUB-ASSEMBLY 1], [Engineering Drawing Numbers].[SUB-ASSEMBLY 1
REV], [Engineering Drawing Numbers].[SUB-ASSEMBLY 1 DESCRIPTION],
[Engineering Drawing Numbers].[SUB ASSEMBLY 2], [Engineering Drawing
Numbers].[SUB-ASSEMBLY 2 REV], [Engineering Drawing Numbers].[SUB-ASSEMBLY 2
DESCRIPTION], [Engineering Drawing Numbers].[DETAIL NUMBER], [Engineering
Drawing Numbers].[DETAIL REV], [Engineering Drawing Numbers].[DETAIL
DESCRIPTION], [Engineering Drawing Numbers].[DETAIL CONFIG], [Engineering
Drawing Numbers].CAT_CODE, [Engineering Drawing Numbers].VENDOR_CODE
FROM [Engineering Drawing Numbers]
WHERE ((([Engineering Drawing Numbers].[INSTALL NUMBER])=[Enter Install
Number])) OR ((([Engineering Drawing Numbers].[INSTALL REV]) Not Like
"*obs*")) OR ((([Engineering Drawing Numbers].[SUB-ASSEMBLY 1 REV]) Not Like
"*obs*")) OR ((([Engineering Drawing Numbers].[SUB-ASSEMBLY 2 REV]) Not Like
"*obs*")) OR ((([Engineering Drawing Numbers].[DETAIL REV]) Not Like
"*obs*"));
Thank you in advance for your help.
Linda
to omit any records that have "obsolete" in any of the revision fields.
Following is my SQL code.
If I include the Not Like "*obs*" criteria, the install number is not
included in the report.
If I exclude the Not Like "*obs*" criteria, the install number is included
in the report, however all records with a revision of Obsolete also show up.
SELECT [Engineering Drawing Numbers].MasterProject, [Engineering Drawing
Numbers].[INSTALL NUMBER], [Engineering Drawing Numbers].[INSTALL REV],
[Engineering Drawing Numbers].[INSTALL DESCRIPTION], [Engineering Drawing
Numbers].[SUB-ASSEMBLY 1], [Engineering Drawing Numbers].[SUB-ASSEMBLY 1
REV], [Engineering Drawing Numbers].[SUB-ASSEMBLY 1 DESCRIPTION],
[Engineering Drawing Numbers].[SUB ASSEMBLY 2], [Engineering Drawing
Numbers].[SUB-ASSEMBLY 2 REV], [Engineering Drawing Numbers].[SUB-ASSEMBLY 2
DESCRIPTION], [Engineering Drawing Numbers].[DETAIL NUMBER], [Engineering
Drawing Numbers].[DETAIL REV], [Engineering Drawing Numbers].[DETAIL
DESCRIPTION], [Engineering Drawing Numbers].[DETAIL CONFIG], [Engineering
Drawing Numbers].CAT_CODE, [Engineering Drawing Numbers].VENDOR_CODE
FROM [Engineering Drawing Numbers]
WHERE ((([Engineering Drawing Numbers].[INSTALL NUMBER])=[Enter Install
Number])) OR ((([Engineering Drawing Numbers].[INSTALL REV]) Not Like
"*obs*")) OR ((([Engineering Drawing Numbers].[SUB-ASSEMBLY 1 REV]) Not Like
"*obs*")) OR ((([Engineering Drawing Numbers].[SUB-ASSEMBLY 2 REV]) Not Like
"*obs*")) OR ((([Engineering Drawing Numbers].[DETAIL REV]) Not Like
"*obs*"));
Thank you in advance for your help.
Linda