Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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?

Posted

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.

  • 2 weeks later...
Posted

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.

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 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.