Filemaker,
Don't use the composite field for linking purposes. Just let the autonumber field take
care of itself (you can hide it on the form), and just display a composite key as a
calculated field.
Since you capture the SerialNo, and the Type, anunbound text control with a
ControlSource of...
= SerialNo & " " & Type
can just be displayed to the user on the form.
Key fields are not for users, they are for you to relate tables and provide unique
record identifiers. Use SerialNo (autonum) in your ONE tables and SerialNo (Long) in your
MANY tables for realtionships.
And yes... SerialNo & " " & Type is a Text value.
--
hth
Al Campagna
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
"Find a job that you love, and you'll never work a day in your life."
"FilemakerPro_Developer" <(E-Mail Removed)> wrote in
message news:6D506705-7EF7-4D56-827F-(E-Mail Removed)...
>I have a auto-enter number foreign key field and a type field. I have a
> question:
>
> 1. field definition is SerialNo & " " & type as text in both tables and I
> get an error message when I try to relate them saying I must have the same
> number of fields and same data type. Do I need to constrain the number field
> as text or does naming the composite key text already change the number to
> text?
>
> I don't quite understand the queries but I assume I don't have to create the
> composite key in a query? AM I supposed to create this key as a function
> instead of a concatenation using the expressions?
> Thanks,
> --
> Janis