paulmild Posted January 22, 2013 Posted January 22, 2013 I have 3 tables with fields (amongst others) as follows - Jobs - PK_JobID Delivery Notes - PK_DelNoteID Delivery Note Line Items - PK_LineItemID, FK_JobID, FK_DelNoteID Delivery notes are compiled on a layout (L1) based on the Delivery Note table with a portal of related line items I also have a Delivery Note layout (L2) for printing based on the Line Items table. From L1 I can script GTRR and open L2 with the correct details. What I want to be able to do is open L2 from a layout based on the Jobs table. From a jobs table layout I can successfully script GTRR and open L1 with correct details - and can then GTRR and open L2. What would be a more efficient way of moving directly to the layout based on the Line Items table. Thanks
Fitch Posted January 22, 2013 Posted January 22, 2013 You have FK_JobID in Line Items, so you could make a relationship Jobs to Line Items and GTRR using that.
paulmild Posted January 22, 2013 Author Posted January 22, 2013 Fitch I tried that but Job to Line Item is 1:1 so on the layout based on the Line Items table I get a single line (Job). Wim I can set a global/variable to be FK_DelNoteID for the line item so I guess I need to use this in a find.
paulmild Posted January 22, 2013 Author Posted January 22, 2013 Thanks, the Find sorted it, for some reason I was obssessing on GTRR
Recommended Posts
This topic is 4383 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 accountSign in
Already have an account? Sign in here.
Sign In Now