On 10/20/06 at 10:08 PM, David Crowe <email@hidden>
But I don't want to go to the other layout! If I do that then the
screen view changes. I don't need to do that to read/write fields from
the database, so I don't know why I should have to do that to create a
What you want, I think, is the "Apple Events Reference" database
(installed with FileMaker in the "English Extras" folder, at
least on my
system). It says:
Use the Layout object to move between layouts, to generate reports, or
to restrict the available fields.
When working with a layout, FileMaker Pro considers only the fields
that are on that layout plus the related fields if any.
In early versions of FileMaker, FileMaker has introduced
layout 0 to
give access to all fields in a table. FileMaker still supports layout
0, but it will only give you access to the first table of the
database. To get access to all fields in all tables, use the table
A "layout" is more the way that records are presented on screen than
full access to the database. What you appear to want is the "table"
object, not the "layout" object. Granted, in older FMP versions,
"layout" was about all you could use in some cases, but that's
Find the table in which you want to create the record, then:
tell table "Table1" -- or whatever
create new record