Solved

How to get order from a non-structured database.

Posted on 2011-03-23
3
344 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

724 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