Solved

How to get order from a non-structured database.

Posted on 2011-03-23
3
332 Views
Last Modified: 2012-05-11
For QC to determine whether or not they should pre-stage a job they have to open this database and look at the form and visually check it to see if certain fields start with an * or not.  If all fields CellBock5  through CellBock11 start with an *.  Then they should pre-stage.  If any of the said fields have data, but don’t start with an * then they need to bring the part into the lab for checking and they don’t pre-stage.  

I have uploaded an Adobe file to explain what I need and also the database used.  ( the original database uses a backend for the data.  This one has everything together.)
EE-CCharts323-01.pdf
CChartsTest.mdb
CCharts.xls
0
Comment
Question by:dbqluthier
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
GRayL earned 500 total points
ID: 35200440
Does this do it?

SELECT tblInspecChDataTest.*
FROM tblInspecChDataTest
WHERE InStr("*******",Left(CellBock5,1) & Left(CellBock6,1) & Left(CellBock7,1) & Left(CellBock8,1) & Left(CellBock9,1) & Left(CellBock10,1) & Left(CellBock11,1)) > 0
AND Len(Left(CellBock5,1) & Left(CellBock6,1) & Left(CellBock7,1) & Left(CellBock8,1) & Left(CellBock9,1) & Left(CellBock10,1) & Left(CellBock11,1))<7;
0
 

Author Closing Comment

by:dbqluthier
ID: 35200845
It worked.  I just plugged it in.

Question:  how does the <7 work?
It would seem that blank fields would mess this up, but they don't.

Super super

Mitch
0
 
LVL 44

Expert Comment

by:GRayL
ID: 35201210
Thanks, glad to help.

I am created a string using the first character of each cell which should be a "*".  If it is another character, the InStr function will kick it out.  because that condition will return a zero - hence > 0.  Now I only want to see those records where one  or more of the cells is not filled in, in which case the length of the string has to be less than 7 hence < 7.  If you alter the number of key cells you have to alter the "*******" string accordingly.  
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question