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

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

Recommended Posts

Posted

OK I have

START_DATE (1-25-2005)

END_DATE (7-25-2005)

From the start Date I need 2 pieces of data.

Start month in word format. The months field it is going into is a value list already with january thru December.

Start year is just a edit field I need it to take the year and insert it here.

Then I need to know the number of months between the START_DATE and the END_DATE. With this information I need it to mark checkboxes. The checkboxes are numered 1 to 12. Based on the difference between the the month I need it to check that number of boxes.

Thanks

Tony D.

Posted

Example attached, I assumed the difference between the start and end dates would never be greater than 12 as you stated in another thread.

Basic:

Start Month Name = MonthName(StartDate)

Start Year = Year(StartDate)

Number of Months =

If(

Month ( EndDate ) - Month (StartDate) > 0;

Month ( EndDate ) - Month (StartDate);

12 + (Month ( EndDate ) - Month (StartDate))

)

StartDate.zip

Posted

I'd suggest you simplify some more, specially the purpose. It is not clear to me what is your REAL DATA, and what is for DISPLAY only.

It seems like START_DATE and END_DATE your real data, and your only real data. If so, StartYear would be given by START_DATE.

But then you say:

Start year is just a edit field I need it to take the year and insert it here.

That I cannot understand.

It seems like the checkboxes are for display only - IMHO, a repeating field with Month/Year (| Jan 05 | Feb 05 | Mar 05 |... ) would better serve this purpose.

Also note that "the number of months between the START_DATE and the END_DATE" is open to interpretation. According to sbg2, for example, a whole month has elapsed between Jan 31 and Feb 1. Others might say that a month elapses when day of month is equal to to the day of starting month. Which then begs the question of Mar 31 vs. Apr 30.

Posted

Also note that "the number of months between the START_DATE and the END_DATE" is open to interpretation. According to sbg2, for example, a whole month has elapsed between Jan 31 and Feb 1. Others might say that a month elapses when day of month is equal to to the day of starting month. Which then begs the question of Mar 31 vs. Apr 30.

Yes I am assuming from mentaria's previous posts that he is tracking Ad sales by month so the difference between Jan 31 and Feb 1 would be 1 month, ie. an Ad would run in both Jan and Feb.

Posted

Thanks for the feedback I am sorry I am no always clear I am italian and english is my second language I really try hard though.

Will try even harder guess I will hand write it first to make sure my brother 100% american can read it if so then I post.

Sorry again

Anthony M. Decavalcante

Posted

No offense, but I don't think this is a language problem. Seems more like an organizing problem.

If you would organize what you know about your solution into three categories:

1. the data that the user knows (input);

2. the data that the user needs to know (output);

3. the way to present the data (display),

things would be much easier to understand. I believe not only for me, but for you as well.

This topic is 7029 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.