×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Reference record.field in another panel within group

Reference record.field in another panel within group

Reference record.field in another panel within group

(OP)
In PS 7.53 I am using the following code to insert a row into a table:

CODE --> /

If Not None(INV_ITEM_ID) Then
   &BUSINESS_UNIT = BUSINESS_UNIT;
   &PO_ID = PO_ID;
   &LINE_NBR = LINE_NBR;
   &INV_ITEM_ID = INV_ITEM_ID;
   SQLExec("Insert into PS_PO_LINE_ITM_REV(BUSINESS_UNIT, PO_ID, PO_LINE_NBR, INV_ITEM_ID, REVISION) SELECT &BUSINESS_UNIT, &PO_ID, &LINE_NBR, &INV_ITEM_ID, A.REVISION FROM PS_EN_REVISION A WHERE A.INV_ITEM_ID = :1 AND C.DATE_IN_EFFECT <= :2 AND C.DATE_OBSOLETE => :2", INV_ITEM_ID, PO_LINE_SHIP.DUE_DT);
End-If

When executed the error message reads "Field does not exist -- PO_LINE_SHIP.DUE_DT. (2,104)"

When the syntax check is run on this code there is no error so I know the record and field name are correct.  I think maybe I just need the syntax to refer to this record and field that are on another panel within the panel group for the same PO LINE_NBR that is currently in the buffer.

Thanks for any help,
J9

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close