Move data from one field to another

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to allow users to input into one field and then click a button to move
the data into a read-only field. I set up a button with a macro that appends
the data to the new field and removes the data from the old field. Which is
exactly what I need. However, it only works the first time I try it. When I
move to a new record and try it again it won't work.

Please help...
 
Change the OnClick event of the button from macro to code, and write

Me.[ReadOnlyFieldName] = Me.[TextFieldNameWithValue]

Now sepend on the value that you are entering, if it text then
Me.[TextFieldNameWithValue] = ""

If its number or date then
Me.[TextFieldNameWithValue]= Null
 

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

Back
Top