Solved

How to get order from a non-structured database.

Posted on 2011-03-23
3
297 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
Comment Utility
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
Comment Utility
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
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
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…

772 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

12 Experts available now in Live!

Get 1:1 Help Now