query to only show if ID is matching in other table

When I remove the added parameter it works again without asking for TblResident.ID
 
well you must have changed something somewhere

attached is your original file with the mod I suggested and it works for me
 

Attachments

My sincere appologies I thought you'd been working on the second file I uploaded. Hence the info was a little different. Your fix works beautifully without the need to change all the tbl info. Thank you so much!!!!!!!!
 
Cj

Are you in agreement with the way the relationships are done.

I believe that there are some serious problems.
 
well, Elmobram hasn't really set any relationships and there are a couple of lookup tables which could be simplified as they stand at the moment (tblCcoRole and tblHouse).

I also can't see the relationship between some of the tables, but given this is a cut down db and the OP says 'I did this database when I was learning so I know the data isn't the way it should be' I'm not surprised.

tblResMed should perhaps be broken down into two tables....

I can't see any fields called 'name' although use of spaces in field names and a lack of consistency in naming conventions makes for more work. Similarly, using the dreaded lookup in table design and possibly wrong data types (e.g. text fields holding numeric values) could create problems further down the line.

So I think my answer has to be that without knowing the full business process, I don't think it is for me to say.

What problems do you see?
 
I agree it is wrong in terms of how I now make databases. I no longer use lookups and all my fields have no spaces and pk or fk and do work on relationships before creating any queries etc. as I say I learned to do what I do now building this and it's a very simple application so there is no real need to go into that depth but thanks for your input. When I have time I'll probably rebuild it from the ground up but I was just trying to create a quick fix which CJ enabled. Thank you for your input guys!! :)
 
CJ

You approach is different to mind. not wrong just different.

I like to see a page with the full relationships including lookups.

This gives me a pictorial view of what is happening.

The use of "name" was within a full name only it had a space. eg "My Name". I was mislead by this. Sorry about that but no harm was done.
 

Users who are viewing this thread

Back
Top Bottom