Solved

Access 97 Query Error

Posted on 2014-04-08
5
216 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 27

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 27

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

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

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
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…
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…

919 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

14 Experts available now in Live!

Get 1:1 Help Now