Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to populate a field if another is pupulated

Status
Not open for further replies.

jsnunez

MIS
Feb 4, 2004
72
US
Hi all

I have a regular bound form. And I have a field "result" that needs to be populated with the value entered in
- the concatenation of fields from the group1 (field1, field11, fiedl 12, field13, field14)
- or the concatenation of fields from the group2 ((field2, field21, fiedl22, field23, field24)

When I create a new record, or modify an existing one, if one of these group fields is modified I want to populate "result" with the rigth value.

How can I do that?

I what event do I need to add a code suche as:
result = field1 + field12 + field13 ...

thanks
jsn
thanks
jsn
 
No code required.
Control source:
= Field1 & Field2 & Field3
It will update automatically.

Using '+' as operator will render the result Null if ANY of the fields is null, so you should use '&' in your case.

HTH

[pipe]
Daniel Vlas
Systems Consultant

 
I am doing the concatenation in the before_update event of the form and it works

thanks
jsn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top