>Thanks.
>So, the vp_Myparameter is the parameter in the view? How should the parameter be defined in the view - as a public var? The only other way I know of is to set the parameter in the view as 'thisform.cCustomer_ID...
>
>I hope I'm making sense here.
The parameter needs to be set as a variable visible during the evaluation of the SQL statement of the view - IOW, a private variable to the piece of code from which you call requery() of your view.
The filter in your case didn't work because of the order of instantiation - the dataenvironment is created before any other objects (as they may be bound to its tables/fields), so it's just too early, the form (which is instantiated) last doesn't exist yet. You may filter it later - but still, doing a view is much better:
vp_parameter=thisform.accnt
requery("myviewalias")