BruceM said:
I just want to say that for me at least it is bewildering the way you
present a suggested table design. I wouldn't know where to run that code
1. If you are using AccessXP or Access2003:
With the .mdb open in ANSI SQL query mode
(
http://office.microsoft.com/en-us/assistance/HP030704831033.aspx),
open a Query object in SQL view and execute each semi-colon-separated
statement.
2. If you are using Access2000:
With the .mdb open, navigate to the VBE (Tools, Macro, Visual Basic
Editor) and in the Immediate Window (View, Immediate Window) run this
VBA:
CurrentProject.Connection.Execute "sql_here"
replacing sql_here, once for each semi-colon-separated statement
3. If you are using a version prior to Access2000 then it may be time
for an upgrade said:
why I would prefer it over design view
Writing such SQL DDL (data declaration language) is how I create
database schemas. Don't knock it until you've tried it: you may find,
like me, you never go back to using GUI tools to write your code for
you ;-)
For me (or anyone) to converted SQL DDL into the description of how to
do the same with Access's GUI tools (navigating menu items, panes,
dialog controls, mouse clicks, button presses, etc) would take
considerably more time. I know because I tried it once:
http://groups.google.com/group/micr...ca58a5073a0/04153523bd678cf9#04153523bd678cf9
Also it surely must be harder for the reader to implement such
descriptions, which anyway can be ambiguous. On the other hand, code is
prescriptive: executing a code script should yield the same results for
everyone.
In other database groups (comp.databases.*,
microsoft.public.sqlserver.*, etc) to NOT post schema as DDL and test
data as INSERT INTO statements is bad netiquette. I for one (and it may
well only be me <g>) think the people who read the
Microsoft.public.access.* groups deserve the same high standards.