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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro to move data from one field to another in a form

Status
Not open for further replies.

BlueHorizon

Instructor
Jan 16, 2003
730
US
Hi all,
Hope I'm in the right forum....
I'm looking to create a macro that will move data from one field to another field on the same form. The fields will always be the same. For example: I have a [name] field. When a person completes a task, their [name] moves from an "incomplete" to a "complete" field on the same form.

Any help would be really great!
TIA,

Best,
Blue Horizon [2thumbsup]
 
I would question your setup/structure. Is there a reason you don't have a status field that you change from "incomplete" to "complete"?

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Hi dhookom,
Great question - wish I had a better answer than that the database didn't originate with me and I'm forced to work with the structure to which everyone has become accustomed.
Thanks,

Best,
Blue Horizon [2thumbsup]
 
On the form that is used to somehow enter that a task has been completed, you would add code like:
Code:
   Me.txtComplete = Me.txtIncomplete
   Me.txtIncomplete = Null

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top