Solved

Access 97 Query Error

Posted on 2014-04-08
5
211 Views
Last Modified: 2014-04-16
I have a query that stopped recognizing the number 2, only the number 2. it's a field called T-SHIFT NO, there are 5 shifts, 1,2,3,4,5. all other shifts are working as intended only shift 2     can not be searched for and it's only this one query.
0
Comment
Question by:Denthion
  • 3
  • 2
5 Comments
 
LVL 26

Expert Comment

by:MacroShadow
ID: 39987125
Can't answer without seeing the file.
0
 

Author Comment

by:Denthion
ID: 39988450
This is the SQL, Hope this helps a bit more.


SELECT TOTES.[T-TOTE#], TOTES.[T-DATE PROC], TOTES.[T-SHIFT NO], TOTES.[T-SHIFT NO], TOTES.[MI-LOT#], qryNetweight.Netweight, TOTES.[FPC-ID NUMBER], TOTES.[T-SUGAR], TOTES.[T-STARCH], TOTES.[T-MELOJEL], TOTES.[T-SAPP], TOTES.[T-SO2], TOTES.[RP-DESCRIPTION], TOTES.[T-TOTE COMMENTS], TOTES.T_MAJORDEFECTS, TOTES.T_MINORDEFECTS, TOTES.T_MOISTURE, TOTES.T_GRADE, TOTES.T_SUBGRADE, TOTES.[T-COST], TOTES.T_METALDETECT, TOTES.[T-DERIVATION]
FROM TOTES INNER JOIN qryNetweight ON TOTES.[T-TOTE#] = qryNetweight.[T-TOTE#]
WHERE (((TOTES.[T-DATE PROC])=[Enter Process Date]) AND ((TOTES.[T-SHIFT NO]) Like [Enter Shift Number or * for all] And (TOTES.[T-SHIFT NO])<>"4"))
ORDER BY TOTES.[T-TOTE#];
0
 
LVL 26

Expert Comment

by:MacroShadow
ID: 39988462
The SQL doesn't help, the data is needed. There is no reason that number 2 wouldn't be recognized. Perhaps the two's have a leading or trailing space.
0
 

Accepted Solution

by:
Denthion earned 0 total points
ID: 39995173
Access had become corrupted from an outside source. backed up the data and re-installed access, working fine again thank you
0
 

Author Closing Comment

by:Denthion
ID: 40003498
I traced back both the problem and what was going on when it happened, I was able to figure out that someone had imported bad files. I was not able to repair access, but was able to save the data and then reload the system after re-install.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
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…

746 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

9 Experts available now in Live!

Get 1:1 Help Now