🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19899

Re: Database Driven Catalog - ???

#19899
From: maxdunn
Date: Thu, 14 Nov 2002 03:03
8 lines
2147 bytes
Oops, yes the name for the table should match of course. I meant to use "tblMyTable" in both the code and what you name the table... 

As far as running VBA from Access: sure you can do it from a form, but it's also nice to just run it from code (there is almost zero need for macros in Access): to do so you simply click anywhere in the function and press the "Play" button (the triangle on the tool bar). 

Rather than paste a whole gobb of code behind a form event, I find it better to call the Function or Sub from a form, in this case if you had pasted it into a module, the onclick event for the form button could be simply: 
Output 

Glad you got it to work... should lead to some more questions (tried to just give the bare bones DAO context): I've hit many initial obstacles with InDesign scripting when first trying things, but none that couldn't be solved. It is a great program and the best API for scripting that I've ever seen: all the objects you would ever need are exposed. I think the challenge is the object model; you have, for example, so many different ways things can be done and so many sort of overlapping objects: you can get at text from the story, from the textframe, from the paragraph, from the selection. That's probably just due to the nature of page composition, but it can take some getting used to.
Technical Details
Message-ID: <1de69529.7@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!opentransit.net!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de69529.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,4348409c0a586298
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-11-13 19:24:07 PST
From: maxdunn <maxdunn@siliconpublishing.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!opentransit.net!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Database Driven Catalog - ???
Message-ID: <1de69529.7@WebX.la2eafNXanI>
Date: Wed, 13 Nov 2002 19:03:33 -0800
References: <1de69529.-1@WebX.la2eafNXanI>
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit