Solved

How to get order from a non-structured database.

Posted on 2011-03-23
3
308 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MS Access 2016 Debugging 7 43
Syntax Error in Query 7 33
Alter an update query which rounds 7 33
MS Access Hiden Columns 19 14
Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Familiarize people with the process of utilizing SQL Server views 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 Access…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now