G
Guest
I have just started using Union Queries and have set up one combining 3 files
with exactly the same layout. - And yes, I am split into FE and BE, the
files are the main DB and various temp files holding the data as it is
entered and checked. At entry the users MUST know if the record is already in
- or in progress to - the main DB (paper forms are duplicated, triplicated,
etc) I have 3 UNION queries in subforms to check the files. One by DOB, one
by FULLNAME, and one by a LOOKUP field. I would like to just have 1 subform
and so one UNION query (for speed and clarity) and would like to know if I
can do this by using the WHERE clause. The form has clients DOB, FULLNAME and
LOOKUP on it so can the UNION be something like
Select 'fields from INPUT FILE'
where DOB = DOB on entry form
Union Select 'fields from MAIN FILE'
where DOB = DOB on entry form
Union Select 'fields from INPUT FILE'
where FULLNAME = FULLNAME on entry form
Union Select 'fields from MAIN FILE'
where FULLNAME = FULLNAME on entry form
If this is possible how do I set it up, I have tried but so far with no
success.
Thanks for any help or any links to information -
Yours -
Dika (Kernow Girl)
with exactly the same layout. - And yes, I am split into FE and BE, the
files are the main DB and various temp files holding the data as it is
entered and checked. At entry the users MUST know if the record is already in
- or in progress to - the main DB (paper forms are duplicated, triplicated,
etc) I have 3 UNION queries in subforms to check the files. One by DOB, one
by FULLNAME, and one by a LOOKUP field. I would like to just have 1 subform
and so one UNION query (for speed and clarity) and would like to know if I
can do this by using the WHERE clause. The form has clients DOB, FULLNAME and
LOOKUP on it so can the UNION be something like
Select 'fields from INPUT FILE'
where DOB = DOB on entry form
Union Select 'fields from MAIN FILE'
where DOB = DOB on entry form
Union Select 'fields from INPUT FILE'
where FULLNAME = FULLNAME on entry form
Union Select 'fields from MAIN FILE'
where FULLNAME = FULLNAME on entry form
If this is possible how do I set it up, I have tried but so far with no
success.
Thanks for any help or any links to information -
Yours -
Dika (Kernow Girl)