Nice fix Chris!!
Jim
Sent from my iPhone. Please excuse any typos.
------Original Message------
Security can definitely be an issue. Also, VI does not like to see schemas in the data source. This will usually result in the Error you are getting. To get around it, after setting the view as your data source in vi, go ahead and select the fields you will be using, and assign them as you normally do in the VI Data tab.
Then, go to Tables - Modify, to edit the SQL Statement.
You should see something like the following:
SELECT Sage.vw_Current_Journal_Entry.PostDate
,Sage.vw_Current_Journal_Entry.SourceJournal
,Sage.vw_Current_Journal_Entry.AccountKey
,Sage.vw_Current_Journal_Entry.DebitAmt
,Sage.vw_Current_Journal_Entry.CreditAmt
FROM Sage.vw_Current_Journal_Entry
Just copy the whole statement to Notepad, or some text editor. Then Alias the table and schema (I'm using CJ as my Alias). The above SELECT statement would look like the following:
SELECT CJ.PostDate
,CJ.SourceJournal
,CJ.AccountKey
,CJ.DebitAmt
, CJ.CreditAmt
FROM Sage.vw_Current_Journal_Entry AS CJ
Copy the revised statement back to your SQL Statement tab in VI. You should be good to go.
------------------------------
Chris St. Amand
Arizona Accounting & Information Systems
------------------------------