Microsoft Query (SQL)

aka_krakur

Active Member
Joined
Jan 31, 2006
Messages
438
I typicall use the Query Wizard or even the main Query Window to pull data via a few tables that are joined.
Anyway, here is the Criteria fields that I use.
Book2
ABCDEFGH
1Product_FamilyDevice_CodeDivisionDateClarifierRegionCountryComplaint
2LIKE[PF1]ORLIKE[PF2]ORLIKE[PF3]ORLIKE[PF4]ORLIKE[PF5]NOTLIKE[EXCLUDE]CP'>=[DATE1]AND<=[DATE2]LIKE[CL1]ORLIKE[CL2]ORLIKE[CL3]ORLIKE[CL4]ORLIKE[CL5]LIKE[REGION1]LIKE[C1]ORLIKE[C2]ORLIKE[C3]ORLIKE[C4]ORLIKE[C5]LIKE[Y/N]
Sheet1


I have no problem when I query with this criteria; however, if/when I go back to edit this query or to just go back in it to view it it changes and moves every single criteria to a new "or" row. I understand that it does this on it's own; however, when I try and return the data back to Excel or even try and refresh data in the query window, I get the following error message:

ORA-00936:missing expression.

And then it doesn't do anything. Wants me to change the Criteria.

Is it because I have too many scenarios...is it too much for Excel?

I also get another (or rather different) error message when someone else tries to refresh this query (w/o going into edit the query) I'll post that message as soon as I get it. It's something about an OCDB error
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,215,527
Messages
6,125,337
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top