Jump to content

If statement with 3 criteria


This topic is 4941 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...

This topic is 4941 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.