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!

how to copy access values across different fields

Status
Not open for further replies.

mkrinke

Programmer
Jun 18, 2003
8
US
I have a table with 3 fields, fld1, fld2 and fld3. If any of the fields has a value, I want to copy that value into all 3 fields. Even if 2 or more fields has a different value, I want to take any one of the values and populate all 3. Any suggestions on a good way to do this?

 
How about setting the value of two fields in the AfterUpdate event of the third.

Me.TextB=Me.TextA
Me.TextC=Me.TextA

And so on.
 
What is the purpose of having 3 fields with same value ?
Have a look here:

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Not my table, I just have to deal with adding data to it.
 
How are ya mkrinke . . .

For me, the redundant data caused me to shudder. [surprise]

In any case [blue]Remou[/blue] has you in tow, only I would state it differently:
TheAceMan1 said:
[blue]In the [purple]AfterUpdate[/purple] event of each control, update the other two.[/blue]

[blue]GoodLuck with this! . . . gonna need it! . . .[/blue]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top