I manage several sites that rely heavily on tables containing database results regions drawn from Access. The tables are all formatted a specific way (colors/size/fonts/etc), and if I need to add a field, change a field name, or otherwise tweak the query, using the Database Results Wizard, FrontPage wants to regenerate the table and erase all my formatting.
If I try to edit the ASP code in HTML view, I get an error message and FP overwrites the changes when I save.
So how do you change the query without regenerating the table? It's surprisingly easy (and not documented).
In HTML view, find the commented out section that appears at the beginning of the database region, before the ASP scripting begins. It's filled with a bunch of FP gobbledy-gook about webbots and such.
In this commented section, you can change the query name, the connection name, any of the field names, even the criteria and SQL statement. Click Save and you'll see the ASP scripting section update automatically.
You've changed the underlying query and FP left your table alone!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.