Question : Launching an Access form with pre-filled fields

Hello,

I am very lost in trying to get a button on a form to launch a second form using values entered in the first.  Basically, it is a quote form and I would like the users to hit a button to turn it into an Order.  Many of the field values should carry over from the Quote form to the Order form.

I can get the button to insert the record into an Order table, but not open and pre-populate a form.

Any direction is greatly appreciated.

Answer : Launching an Access form with pre-filled fields

An easy to do it would be to first open the Order Form, using the On Current Event, you can write code that will populate your fields using the Quote One like this for example:

Me!Name = Forms!frmQuote!Name
Me!Product = Forms!frmQuote!Product

At the end, you can close the Quote Form using

docmd.Close acForm, "frmQuote"
Random Solutions  
 
programming4us programming4us