Form Filter

I created a new form X with one field Vendor. No Table was created to this form.

I added a Button in Form Vendor with link to this new form X.

When I push the botton from Vendor form, I would like that Vendor field on Form X, should be already fill with Vendor Nº.

How can I do It??

create a function in form X to retrieve the vendor no

and on push button run the form

formX.Newfucntion(vebdor no)

I created a new function in FormX like DDD =

Vendor.GET(Number);

In Push button added this

FormX.DDD(Number);

When I execute form, I get one Error = " Vendo No. does not Exist"

Why create a button, why not use a lookup from your “only” field to the vendor and get back the value you select?