Jeff
Thanks for getting back to me.
The form is 'queried' to;
SELECT Students.[First Name], Students.Surname, Students.[Tel No],
Students.[Mobile No], Students.DOB, Students.Comments, Preferences.[Pref
Day], Preferences.[Anticipated Level], Preferences.[Pref Course] FROM
Students INNER JOIN Preferences ON Students.[No]=Preferences.ID;
If I input a number of records it appears only certain ones (and always the
first one) appear.
> Martin
>
[quoted text clipped - 12 lines]
> >
> > Martin
Jeff Boyce - 21 Mar 2007 20:19 GMT
I'm not sure why only the first one would show, but the SQL statement
includes an Inner Join. If there are no "matching" records in the
Preferences table, the query won't return any student data.
I'm a little unclear on the structure and relationship of your tables. From
the SQL statement, it looks like you have a one-to-one relationship. In my
domains, individuals could have multiple preferences (one-to-many).
Regards
Jeff Boyce
Microsoft Office/Access MVP
> Jeff
>
[quoted text clipped - 29 lines]
>> >
>> > Martin
KneeDown2Up - 22 Mar 2007 15:35 GMT
Ok, thanks Jeff - I have changed the relationships to 1-many in the SQL
query window - seems to work now (although I struggle with understanding
relationships!) - Thanks for your help.
> I'm not sure why only the first one would show, but the SQL statement
> includes an Inner Join. If there are no "matching" records in the
[quoted text clipped - 42 lines]
> >> >
> >> > Martin
Jeff Boyce - 22 Mar 2007 21:09 GMT
To get the best use of Access' features and functions, it would be worth
your while to spend a bit of time brushing up on "relationships" ... they
are pretty much at the heart of a relational database like Access!
Good luck!
Regards
Jeff Boyce
Microsoft Office/Access MVP
> Ok, thanks Jeff - I have changed the relationships to 1-many in the SQL
> query window - seems to work now (although I struggle with understanding
[quoted text clipped - 51 lines]
>> >> >
>> >> > Martin