Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7048 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have two tables; "TableA" and "TableB". Each table has four fields; "1", "2", "3", "4". What I want to do is...

When I create a new record in TableB, I'd like to do something like this:

TableB/Field1 = TableA/RecordX/Field1

TableB/Field2 = TableA/RecordX/Field2

TableB/Field3 = TableA/RecordX/Field3

TableB/Field4 = TableA/RecordX/Field4

"RecordX" is a specific record in TableA...it never changes. I can get this to work using a series of Go To/Copy/Paste type of scripts, but this doesn't seem to be very elegant and I have the feeling I'm not fully understanding the power of relational dB (I'm new here, remember) and that there must/should be a more efficient way to script this. Thanks in advance for any help.

Kirk

Posted

You shouldn't need to script this. What makes RecordX in TableA unique, perhaps a serial ID? In other words if you needed to perform a find in TableA how would you define the find to return only RecordX?

Create a new GLOBAL field in TableB - g_RecordX_Field1 = "Insert what makes RecordX unique here". Then relate the two tables TableB::g_RecordX_Field1 = TableA::"UniqueField". Now you can use a lookup for Field1, Field2, Field3 & Field4 over this relationship.

Posted

Not quite sure I understand what you want here. But I think what you want can be done with auto-enterd calculations.

It looks like every record would have the same data in these four fields.

Posted

Thanks much...that worked exactly as I had hoped. It was the lookup part of the equasion that I was missing. Thanks again for the assistance.

This topic is 7048 days old. Please don't post here. Open a new topic instead.

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.