Solved

Access 97 Query Error

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

815 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

7 Experts available now in Live!

Get 1:1 Help Now