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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not a Valid month

Status
Not open for further replies.

FreshBe

IS-IT--Management
Jul 25, 2006
9
0
0
GB
Hello all, I am trying to run a SQL query against Oracle 10g using VBA.

the query is:-
SELECT CALL.CALL_NUMBER FROM CALL, CALL_EVENT, THREAD WHERE CALL.CALLOID=CALL_EVENT.CALLOID AND CALL_EVENT.CALL_EVENTOID=THREAD.CALL_EVENTOID AND THREAD.TYPE_OF_WORK_ID='MANUAL' AND (THREAD.BOOKING_DATE BETWEEN TO_DATE('01/09/2006' ,'mm/dd/yyyy') and TO_DATE('30/09/2006' ,'mm/dd/yyyy')) AND CALL.CONTRACT_ID='SOMETHING' ORDER BY CALL.CONTRACT_ID


When I execute this I get the ORA-01843: this is not a vaild month error. Any help please
 
... TO_DATE('30/09/2006' ,'mm/dd/yyyy')) ...

obviously '30' is Not a Valid month.

 
:~/ sorry blonde moment, couldn't see the wood for the tree's as the say.

Thanks hoinz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top