Open a form from a datasheet form to edit

D

Dan

I have a form that is a datasheet view of my product table. I like the
datasheet view so the user can scroll through the records and pick the
record that he/she wants to edit. For simplicity, lets assume the for is
"product.form" and it has the fields "partno" and "description". Once the
user selects (highlights) a record I want them to click an "Edit" button to
bring up "EditForm" with partno and description of the record they selected.
Then they can edit the field and save the changes.

Assuming partno is ABC001 how do I code the Edit button to open the
"EditForm" with ABC001 partno?

Thanks
Dan
 
R

Rick Brandt

Dan said:
I have a form that is a datasheet view of my product table. I like the
datasheet view so the user can scroll through the records and pick the
record that he/she wants to edit. For simplicity, lets assume the for is
"product.form" and it has the fields "partno" and "description". Once the
user selects (highlights) a record I want them to click an "Edit" button to
bring up "EditForm" with partno and description of the record they selected.
Then they can edit the field and save the changes.

Assuming partno is ABC001 how do I code the Edit button to open the
"EditForm" with ABC001 partno?

Just make sure the toolbox wizard is enabled when you drop the command
button onto the form. One of the options in the command button wizard does
exactly this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top