Hi Mark,
Thanks for answering. Apparently I didn't explain myself very well. I
already have the code " [myTextBox]
=IIf(Forms!frmContracts!RFQType='R',"NGSS
Material
Replacements","NGSS COSAL Material Replacements") in my form.
What is not happening is the data is not being put into the source table.
So, although I see "NGSS Material Replacements" in the text box on the
form,
the data is not being put into the underlying table. I thought it did this
automatically, but it isn't happening.
Any other suggestions?
Mark A. Sam said:
Many ways, but here is one. On the Dirty property of the subform:
[myTextBox] =IIf(Forms!frmContracts!RFQType='R',"NGSS Material
Replacements","NGSS COSAL
Material Replacements")
Or you can place it in the AfterUpdate event of a control on the subform.
[myTextBox] is the Textbox on the subform you wish to populate. If you
want
to populate [txtProgramName] then you need to clear the ControlSource
property of the textbox.
God Bless,
Mark A. Sam
I have a subform that has a text box "txtProgramName" that has
"=IIf(Forms!frmContracts!RFQType='R',"NGSS Material Replacements","NGSS
COSAL
Material Replacements")" as its Control Source.
I need the correct choice to fill in the table tblLineItem.
How is this done?