Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Returning Strange Results

Status
Not open for further replies.

MadCatmk2

Programmer
Oct 3, 2003
145
GB
Hi all

This problem is driving me up the wall!!!!!

Hopefully someone can help or suggest a reason as to why its happening.
I'm using Access 97 to query a table of contact details. Firstly i have this query:

Code:
SELECT BM_CON.*
FROM BM_CON
WHERE (((BM_CON.DATE_OF_VISIT)=#4/27/2004#) AND ((BM_CON.PATIENT_NO)="bm1882"));

This returns one record which is correct. Heres where the problem arises. Using this query returns several values but not the one returned in the first query(Which i am sure it should.

Code:
SELECT BM_CON.*
FROM BM_CON
WHERE (((BM_CON.DATE_OF_VISIT)=#4/27/2004#));

Does anyone know why the record should appear in the first query results but not in the second.

Any help is much appreciated.

Thanks in advance.

 
Sorry. Think i've solved it. Database i was using seemed to have a corruption. A repair on the database sorted it.

Thanks anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top