StarvinMarvin
still quite the noob
- Local time
- Today, 13:49
- Joined
- Mar 8, 2010
- Messages
- 171
I recently saved a 2007 database to 2003 for work in which everything worked OK in the 2003 version inside Access 2007. It appeared to work ok for a while until recently when I started having problems with 2 stored queries. Query 1 pulls employee data from a linked Oracle table and specifically converts the field STAR from text to a number, as I have no need for leading zeros in the results. Query 2 is used by a search form to produce a single employee's info based on STAR. Problem is when I attempt to search for employee info based on values I type into the form I get an ODBC error function sequence error #0 and a data type mismatch in criteria expression. This wasn't a problem before but for some reason now it is.
My thinking is that the first query to run is Query 1 which pulls ALL and converts STAR to number, then Query 2 selects from those results.
For some reason it looks like something's getting passed on to the Oracle table incorrectly.
I can't ask the operator to enter leading zeros to accomodate this problem and it doesn't make sense that I'd have to write code to check field length and add zeros before passing the values on to search by.
If this doesn't make sense I can' post the SQL.
My thinking is that the first query to run is Query 1 which pulls ALL and converts STAR to number, then Query 2 selects from those results.
For some reason it looks like something's getting passed on to the Oracle table incorrectly.
I can't ask the operator to enter leading zeros to accomodate this problem and it doesn't make sense that I'd have to write code to check field length and add zeros before passing the values on to search by.
If this doesn't make sense I can' post the SQL.