The Missing Man Posted October 31, 2010 Posted October 31, 2010 I am trying to make an if statement based on 3 fields being the same between the two tables. If all the criteria matches then information from KPMONTH_ID Table B is transferred to KFMONTH_ID Table A but it's not working. Any thoughts? If ( TableA_Month = TableB::TB_Month and TACode = TableB::TBCode and TableA_Year = TableB::TB_Year; TableB::KFMonth_ID ; "Find Month ID") Basically I am trying to automate transferring data from an excel file into my data base. I have my Months as a separate table from the days as they address different information. I need to track Months separate from days. Based on this I created two tables. Maybe this is over kill and Days and Months should be in the same table?
comment Posted October 31, 2010 Posted October 31, 2010 What - if any - is the relationship between the two tables? Maybe this is over kill and Days and Months should be in the same table? Hard to tell without knowing what are you trying to accomplish. In general, a table of months and/or days is redundant, since it carries no new information (we all know the calendar). The only item of interest is a table of events.
The Missing Man Posted November 8, 2010 Author Posted November 8, 2010 Gave up on the if statement and instead made a custom ID number based on a combination of fields. This gave me the link I needed to join the two tables based on the imported information.
Recommended Posts
This topic is 5130 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