>How do I open a form with the parameter coded in it so the view will not open the dialog box to ask me to manuall put the parameter in.
>
>I have a view in which I have a parameter filter. The filter is set as ?parssnumber (tried it without the ? mark but it gives me an error).
>
>The form, Form1 has a grid linked to the view. On the init section of the form1 I put:
>
>parssnumber = '222-22-2222'.
>
>But the dialog box keeps opening asking for the character value of parssnumber. Am I on the right track?What happens is that the variable you are declaring in Init() loses scope and is therefore not seen in other methods. The way to persist variables is to assign them to properties of the object (in this case the form).
Before opening or requerying your view, you must assign the value to the variable used as view parameter.
HTH