code to find name of last updated field

G

Guest

I have a form (frmDataEntry) with several text boxes to score product
attributes with a score of 1 to 3. I have code to open a new form
(frmLowScoreComment) if anything less than 3 is entered in any attribute.
frmLowScoreComment has two fields, a comment field and a text box for the
name of the attribute that caused this form to open. I want the attribute
text box to be filled in automatically, but can't seem to find code to do it.
I know how to create one for each attribute, but just can't figure out how
to get it to look at the last text box that was updated/exited. Any help out
there?
 
C

Carl Rapson

Miranda said:
I have a form (frmDataEntry) with several text boxes to score product
attributes with a score of 1 to 3. I have code to open a new form
(frmLowScoreComment) if anything less than 3 is entered in any attribute.
frmLowScoreComment has two fields, a comment field and a text box for the
name of the attribute that caused this form to open. I want the attribute
text box to be filled in automatically, but can't seem to find code to do
it.
I know how to create one for each attribute, but just can't figure out how
to get it to look at the last text box that was updated/exited. Any help
out
there?

Pass the name of the control to frmLowScoreComment in the OpenArgs parameter
of OpenForm, then pick up the value in the Form_Load event of
frmLowScoreComment and populate the text box with the name.

Carl Rapson
 

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