Link to home
Start Free TrialLog in
Avatar of Denthion
Denthion

asked on

Access 97 Query Error

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.
Avatar of Joe Howard
Joe Howard
Flag of United States of America image

Can't answer without seeing the file.
Avatar of Denthion
Denthion

ASKER

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#];
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.
ASKER CERTIFIED SOLUTION
Avatar of Denthion
Denthion

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.