SMM Posted January 29, 2007 Posted January 29, 2007 (edited) I've got two databases, projects (PRJ) and employee names and email addresses (EMP). I'm trying to compare a last-name field in PRJ with a last-name field in EMP and, if EQUAL or even SIMILAR, put that employee's email address in a new field. I tried: If (PROJMGR = Employee Table::Emp. Last Name; Employee Table::email;0) But the comparison between the two text fields doesn't work. Thanks for any help! Steve Edited January 30, 2007 by Guest
Lee Smith Posted January 29, 2007 Posted January 29, 2007 You are showing v6 in your profile, but you are talking about Tables. Prior to version 7, tables were separate files. Using the Employee Last name is asking for the relationship to not work properly. A better way would be to have Employee IDs, and they need to be unique. The way you are saying you want to set it up will break when you have two or more people with the same last name. Anyway, what you want is to Auto Lookup the data. You need a relationship between the 2 TOs (or files), and then have your email address in Project Manger To (file) looked up the information based on the relationship in the Employee TO (File). HTH Lee
SMM Posted January 29, 2007 Author Posted January 29, 2007 Thanks for your quick response, Lee. Appreciate that! I'll give what you suggest a try. Steve
SMM Posted January 30, 2007 Author Posted January 30, 2007 (edited) Lee, (or others) A follow-up question...I did what you suggested using the related link. I linked "employee last name" in EMP table with "project manager" in the PRJ table. Although I have a unique employee ID in EMP, it doesn't make sense to link it to PRJ because I actually have an ACCOUNT manager to fill in as well in PRJ. So, I tried relating "project manager" AND "account manager" to "employee last name", but that no longer works. Again, any help is MUCH appreciated. Forgot to mention that I made the proj mgr and acct mgr fields look-up to the email field in EMP. Steve M. Edited January 30, 2007 by Guest
Lee Smith Posted January 30, 2007 Posted January 30, 2007 Verify that you are using v6, or somthing else before I make you a sample file. There is a big differece between Tables and Files. Lee
SMM Posted January 31, 2007 Author Posted January 31, 2007 Thanks Lee. I'm definitely using 8. All my dbs have the fp7 extension. Steve
Lee Smith Posted February 1, 2007 Posted February 1, 2007 Here are a couple of examples. I forgot about this Thread, as I got busy doing a project of my own. I put these together fairly quick, and they show how you can pull the Email address from the Employee file into the Project file. However, if you were going to need more information than this, then you would need to improve this using IDs, probably some Portals, scripts, etc. The two file folder is the one I was doing in v6, and I converted over to v8. BTW, all of 7, 8 and 8.5 files are tagged as v7. The single file would be how you could set this up using TOs. HTH Lee SMM.zip
SMM Posted February 1, 2007 Author Posted February 1, 2007 Thanks again for your time working on this, Lee. That was a big help! Steve
Recommended Posts
This topic is 6566 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now