Jump to content
Server Maintenance This Week. ×

How to join the content of two records


Dr.Hamed

Recommended Posts

I have a file that contains one word in each record, how can I create a field that shows two consecutive words "records":

Record1: They

Record2: went

Record3: to

Record4: school

I want a field to show in record1: They went

In record2: went to

In record3: to school

In record4: school 

Thanks

Link to comment
Share on other sites

The problem with your question is how to define "consecutive". If it means consecutive within the current found set and sort order, then you can use the GetNthRecord() function to get the value from the previous/next record - say something like:

Yourfield & " " & GetNthRecord ( Yourfield ; Get ( RecordNumber ) + 1 )

If you're looking for a permanent order that does not depend on the current found set and sort order, then you will need to construct a relationship whereby each record is related to the previous/next record - for example, by adding 1 to a serial number and using it to match the next record.

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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