Problem with data base.

chef_tim

Registered User.
Local time
Today, 16:35
Joined
Dec 16, 2004
Messages
77
I'm not sure where this should actually go, so in to general.

Here's the problem. I have three forms, they they are all based on queries. when I add a person into my "Personnel Info" form, it puts the info into the table that holds that info. However, the other two forms that draw information for their queiries (LastName, FirstName) from that table are not reflecting the change. I've gone through and checked my relasionships (all one to many from "PersonnelInfo" to related training tasks. It just doesn't make sense. Thanks for any help, Tim
 
Is the information updated if you close the forms and open them again?
 
Nope, still not updating to the other forms. Tim
 
I can't post the whole thing, it has SSNs in it. is there any portion in particular that you would like to see that would not hold that information? Thanks, Tim
 
Okay, I'll give that a try!!!!

I keep getting a to large file message, even as a zip file
 
Last edited:
Have you tried compacting it after clearing out all the records?
 
Sorry, I'm getting very flustered. Try this...........

Still to big. 844kb as a zip and 2.4meg regular
 
Do you want to mail me the zipped one.
 
Last edited:
OK. I've had a quick look now. Just a couple of questions.
Are you using the 2 forms based on queries to input data or view data or both?
Is one person ever going to have more than one Career Progression form filled in? Same question for Training Tasks form.

My initial thoughts are that you've got your joins slightly wrong in your queries. If you right click on the join line in your query, click on join properties, the change choice 1 to choice 2 (Include all records from Personnel Info and only those from Career Progression where the joined fields are equal). Try searching for joins (in particular left join) on the forums for more info.

This means that the query will bring back everyone's records, even if they don't yet have any entries in the career progression table. That way you can use the form to add details for people without any already which you couldn't before.

At the moment your forms open completely independently, which means there's nothing to stop someone opening the career progression form and trying to enter details of someone who doesn't yet have a record in the Personnel Info form. This won't work because they don't yet have a SSN entered which you are using to link the records. That's something else to think about.

Another thing to think about is if you have two people with the same name there's no way of distinguishing between them by looking at your career progression and training tasks forms. You're using the SSN as your unique person reference, but you're not showing that on those forms. You don't necessarily have to show it on them, but it might be worth (and this relates to my previous point as well) thinking about possibly opening the career progression and training tasks forms from the personnel info form. That way you can tell it to open the form at the same person you're already looking at.

I hope this gives you a few pointers. If you still have problems with your original question, let me know and I'll look into it a bit further.
As for the other suggestions I've made, you'll find plenty of advise about those things on the forums. Normalization is also well worth reading up on. I'm not going to go into it here as there is loads posted on it already and there's a lot of people who have explained it much better than I could ever hope to (Pat Hartman for one).
Just one last point, it should be career, not carreer. I'm not saying that to be picky, I just know how frustrating it is to build an entire database only to find out later on that you've spelt something wrong all the way through it. It's not too crucial for your tables etc as no-one should see them anyway, but you might like to alter it on labels on your forms. :)
 
When you have a 1-many relationship and you create a query that joins the two tables with an Inner join (the default join type), you will see ONLY 1-side rows that already have many-side rows UNLESS you change the join type from Inner to Left.
 
once again, you guys have brought me through.....LOL. Now I feel really dumb, I tried changing those, but I think I was changing one and looking at another. I just went through and changed ALL the queries. Now it works. You did how ever present an interesting point. I don't want people entering names in the training/career progresion forms so I will format them to not accept text. Thanks a million. Tim
 

Users who are viewing this thread

Back
Top Bottom