AutoGenerate FindReplace List Query

%3CLINGO-SUB%20id%3D%22lingo-sub-2432476%22%20slang%3D%22en-US%22%3EAutoGenerate%20FindReplace%20List%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2432476%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3EAccess%20newbie%20here%2C%20Versed%20in%20Excel%20VBA%20looking%20for%20new%20challenges%20so%20trying%20Access.%3C%2FP%3E%3CP%3ESo%20I'm%20trying%20to%20use%20Templates%20to%20auto-generate%20a%20find%20and%20replace%20list.%20I%20have%20a%20table%20%22tTemplates%22%20that%20lists%20Template%20Names%20and%20Placeholder%20values%20that%20are%20to%20be%20replaced%20when%20using%20that%20specific%20Template.%20I%20also%20have%20table%20%22tDrawings%22%20where%20I%20specify%20a%20drawing%20number%20and%20what%20template%20that%20drawings%20should%20use.%20I'm%20trying%20to%20create%20a%20query%20that%20will%20list%20(either%20in%20the%20query%20itself%20or%20make%20a%20new%20table)%20the%20same%20drawing%20number%20with%20each%20individual%20placeholder%20to%20replaced.%20I%20have%20tried%20Select%20queries%2C%20Make%20Table%20Queries%20and%20Append%20Queries%20but%20the%20most%20i%20can%20get%20it%20to%20do%20is%20list%20a%20blank%20column%20for%20the%20drawing%20number%20and%20then%20list%20all%20of%20the%20placeholders.%20Anyone%20have%20any%20tips%20or%20recommendations%20on%20a%20way%20to%20go%20about%20this%3F%20Last%20Photo%20is%20Desired%20Result%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22tDrawings.png%22%20style%3D%22width%3A%20729px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F287590i9626DC4B8DB5169D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22tDrawings.png%22%20alt%3D%22tDrawings.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22tTemplates.png%22%20style%3D%22width%3A%20482px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F287591i32B899B6D4E418FD%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22tTemplates.png%22%20alt%3D%22tTemplates.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22desiredresult.png%22%20style%3D%22width%3A%20282px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F287592iF225DCA78C26BFDB%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22desiredresult.png%22%20alt%3D%22desiredresult.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThanks%20For%20Looking%2C%20any%20guidance%20is%20appreciated!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2432476%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAccess%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2432663%22%20slang%3D%22en-US%22%3ERe%3A%20AutoGenerate%20FindReplace%20List%20Query%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2432663%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1075061%22%20target%3D%22_blank%22%3E%40Ibblitzed%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWas%20able%20to%20solve%20by%20using%20a%203rd%20field%20although%20not%20terribly%20sure%20why%20that%20made%20it%20work%20%3A%5C%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22solved.png%22%20style%3D%22width%3A%20442px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F287620i3807AF7484136936%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22solved.png%22%20alt%3D%22solved.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi All,

Access newbie here, Versed in Excel VBA looking for new challenges so trying Access.

So I'm trying to use Templates to auto-generate a find and replace list. I have a table "tTemplates" that lists Template Names and Placeholder values that are to be replaced when using that specific Template. I also have table "tDrawings" where I specify a drawing number and what template that drawings should use. I'm trying to create a query that will list (either in the query itself or make a new table) the same drawing number with each individual placeholder to replaced. I have tried Select queries, Make Table Queries and Append Queries but the most i can get it to do is list a blank column for the drawing number and then list all of the placeholders. Anyone have any tips or recommendations on a way to go about this? Last Photo is Desired ResulttDrawings.pngtTemplates.pngdesiredresult.png

Thanks For Looking, any guidance is appreciated!

1 Reply

@Ibblitzed 

Was able to solve by using a 3rd field although not terribly sure why that made it work :\

solved.png