Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

script: datas of one colomn into another one

Featured Replies

Hi, I want to make a script that will put every datas of one colomns into another one, because if I do it manually, it will be pretty long to cut and paste everything, and I just have a week to finish this.

So is this possible?

It would save me a lot of time, so I could work on something else on that database I'm building.

Thank you!

Maybe you should try clicking in the target column (ColumnB), type shortcut [Ctrl]+[=] and then specify a calculation such as: Table::ColumnA.

BTW, "data" is plural for "datum", so no such word as "datas". :

  • Author

Oh really? Didn't know that. Anyway, thanks for the grammar tip :

And thanks for the answer, it has been really useful / helpful!

btw, sorry for my english, I'm not bilingual, so I kinda have some difficulties.

Hi s-A, and welcome to the Forum.

There is nothing wrong with your english. I was able to understand your question.

A word of caution about using the Replace Function "cmd and =" (Menu >> Records >> Replace Field Contents) on your original file, as you can not UNDO your action. You should do this action on a copy of your file in case the inevitable unexpected happens.

Lee

  • Author

Yeah, that's what I did, but thanks for the advice!

But now, what if I want to transfert the content of Colomn A into Colomn B, but only into Colomn B's blank field.

For example:

A: 80

B:

would become

A: 80

B: 80

But if it is

A:

B: 80

I don't want the content of A into the B field. Don't know if you understand, but I would like to do this?

That is why I said to be careful of the Replace field contents, as you can not undo it. And, it doesn't care if there is data in the second field, it will replace it anyway.

What you need is a Found Set of Records that are blank in Field B. You can do this by going into Find Mode, and type the equal sign = in B.

Once you have the found set, then you can use the Replace on it, and it will not effect the other records that have been omitted.

HTH

Lee

  • Author

Thanks so much, Lee! I can now work on something else, your help has been reeeeeeeeeeeally useful!

The big part of what I had to do this week is now done!

But be careful to get replies, when asking this abstract ... it's not a database "kosher" request you have, why have the data landed in the wrong field in the first place??

I ask in this spiffy way to ensure nothing structural is the matter here. What is the context and purpose this should be performed ... if a word like syncronize shows up in your explanation you have made to yourself, might you consider that normalization is a mesure to seek to avoid the very thing!

--sd

..... why have the data landed in the wrong field in the first place??

Excellent question, and one that I meant to asked, but forgot. :doah:

Lee

  • Author

They were in the wrong field, because when I first created the coloums, there was "Amount" and "No. doses", but I didn't know that the number that was in te "Amount" field corresponded to the no. of doses, so some informations were into the "Amount" colomn, and other into the "No. doses" one. So when I learned they were the same, I just wanted to match them together.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.