>select distinct student.cid ; > from iepoint!student ; > left outer join iepoint!facts on student.cid = facts.cStudentid ; > left outer join iepoint!IEP3744_CONF on student.cid = IEP3744_CONF.cStudentid ; > left outer join iepoint!enrollment on student.cid = enrollment.cStudentid ; > where &lmAllStuRules into cursor crsStudentsWhoMatchRules nofilter >>Even with my [INTO] statement, it brings the results to a query window in the desktop, the fails when I attempt to reference the cursor 2 lines down.
>( FACTS.CHOMESCHID='00Z46H')
>
>This code works correctly in a command window, and a similar statement w/o the macro works. Thoughts?FACTS.CHOMESCHID='00Z46H'
An unrelated general point, if you're comparing strings you might want to use "==" instead of just "=" e.g.FACTS.CHOMESCHID=='00Z46H'
Update: another thing that's bitten me from time to time is having tab characters or other invisible/non-printing characters somehow lodged in a long statement like SELECT - SQL. Rather than copy/paste for testing purposes, you might try re-typing the entire statement to be sure you have no such characters in it.