The Stoat
The Grim Squeaker
- Local time
- Today, 04:50
- Joined
- May 26, 2004
- Messages
- 239
Hi,
Is it possible to link parent and child forms with an "either or" criteria.
I'm currently creating the links and Sql sources for the forms using VBA -hence why this is posted here - but i need to be able to link using one or more fields .
As an example i want to display all the records where the surname is either "Smith" or the Date of Birth is #01/01/2001# or both e.g
Record 1 in the child form has an entry for field [Surname] = "Smith" and Date of Birth = #01/01/2001# so does the parent form record
Record 2 in the child form has [Surname] ="Smith" but the Date of Birth = #02/02/2002#.
Record 3 in the child form has [Surname] ="Jones" and the Date of Birth = #01/01/2001#.
I want to display all of these records in the child form.
Any ideas?
Thanks
The Stoat
Is it possible to link parent and child forms with an "either or" criteria.
I'm currently creating the links and Sql sources for the forms using VBA -hence why this is posted here - but i need to be able to link using one or more fields .
As an example i want to display all the records where the surname is either "Smith" or the Date of Birth is #01/01/2001# or both e.g
Record 1 in the child form has an entry for field [Surname] = "Smith" and Date of Birth = #01/01/2001# so does the parent form record
Record 2 in the child form has [Surname] ="Smith" but the Date of Birth = #02/02/2002#.
Record 3 in the child form has [Surname] ="Jones" and the Date of Birth = #01/01/2001#.
I want to display all of these records in the child form.
Any ideas?
Thanks
The Stoat