Jump to content

Finding same records in a related table


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

Recommended Posts

I am trying to perform a find from one table to another related table. For example:

I want to go from one table to another by pushing a button. I want to find the same record that I am in currently, matched with the same record in the second table.

How can I accomplish this. I tried a script like this:

enter find mode

set field(main:ordernum;auth:ordernum)

peform find

But this script tells me no records found, modify or cancel find.

Let me know what I'm doing wrong, or if there is a totally different way of handling this.

Thanks!

Link to comment
Share on other sites

Relationships don't exist in Find Mode. So, unless auth::ordernum is a global, Set Field has no effect. You are not doing a find in the related table anyway; your find is being performed in the current one.

If, however, you have a relationship between main and auth based on the ordernum field, simply use Go to Related Record [show only related; Using layout: [{layout based on auth TO}]; "MainToAuthRelationship"].

Link to comment
Share on other sites

This topic is 6972 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.