The problem is you have session.division='ss'....do you mean division='ss'?? What is the database field name, not the session variable name? >Hi > >Can anybody help on why the following query is returning the error >"missing expression ???? shown below ? > >If I remove the AND session.division='ss' the query works fine ? > >Any ideas ? > > ><CFQUERY DATASOURCE="#Application.DSN#" NAME="update"> >SELECT docid, doctitle, docdate >FROM doc >WHERE username ='#Session.Fname# #Session.Lname#' >AND >directorate='team' >AND >session.division='ss' > >ORDER BY docid desc, docdate desc ></CFQUERY> > > > > >Error Executing Database Query. >[Macromedia][Oracle JDBC Driver][Oracle]ORA-00936: missing expression > >The error occurred in \publishing\doclisting.cfm: line 16 > >14 : SELECT docid, doctitle, docdate >15 : FROM docs >16 : WHERE username ='#Session.Fname# #Session.Lname#' >17 :AND >18 : directorate='ssh' > > > > >TIA
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195899 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

