I am using the .net interface, but am fully fluent in VBA.
Does anyone know of a “rule” when creating a view, and then using browse for the view?
I have this snip of code that works just fine:
myview = dbLink.OpenView("CS0120")
myview.Browse("select IDCUST, NAMECUST, TEXTSNAM FROM ARCUS where IDCUST = '123_MIS' ", True)
myview.InternalSet(256)
Do While myview.Fetch(False) = True
Loop
This ALSO works:
myview = dbLink.OpenView("AR0018")
myview.Browse("CODESLSP = ""BB"" ", True)
etc. etc.
But this does not:
myview = dbLink.OpenView("AR0018")
myview.Browse("SELECT CODESLSP, NAMEEMPL FROM ARSAP ORDER BY CODSLSP", True)
Is there any reason why the above browse does not work? I checked the docs, and table name is correct. (ARSAP).
The docs show that for view AR0018, the table name is ARSAP.
Is there a rule that means only some views can be SQL, and other views MUST use a filter only?
Ideas?
Albert D. Kallal
Edmonton, Alberta, Canada