dStartDate = {^2003/01/01} && Any date would do for initial creation CREATE SQL VIEW Temp_Agent_details CONNECTION arcview AS ; SELECT * ; FROM Agent_Details_001 ; WHERE Agent_Details_001.datetime = ?dStartDateI read your reply to Pamela about 'this'. But Pamela was right as I told you too before. If you do that within a class :
* Open view retrieving with dStartDate initial value dStartDate = {^2002/12/25} use myDBC!Temp_Agent_details alias myAgent * Change dStartDate value - You could use this one in class dStartDate = this.dStartDate requery('myAgent')Or open the view with nodata and populate when you need (ie: In your class) :
oAccess = createobject('myArcView') oAccess.dStartDate = {^2001/01/01} oAccess.GetData browse define class myArcView as custom Alias = 'myAgent' dStartDate = {} Procedure Init use myDBC!Temp_Agent_details alias (this.Alias) NODATA endproc Procedure GetData local dStartDate dStartDate = this.StartDate requery(this.Alias) Endproc enddefineIf you still want to do this from a class then consider SPT instead. It wouldn't create a view in DBC (utilize and throw w/o making new entries in DBC - and you don't need a DBC).