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

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

Recommended Posts

Posted

I created a new database which contains a total of three fields. Two of these fields contain a drop down menu, while the third is a date field. When either of the two drop down menus have changed a new date should appear within the date field. The first drop down menu contains the shipping time, while the second is the method of shipping, UPS, Fedex etc. Could someone please point me in the right direction as to how to get this to work? Whatever help you can offer would be greatly appreciated. Thanks in advance.

Posted

... which contains a total of three fields.

The third field must be a date field which autoenters the modification date.

Posted

Hi Danielle,

while the third is a date field.
, of course he could have called a Date Field, and it really is text.

Lee

Posted

Hi Lee

of course.

This is why I said that that field "must be a date field"

BTW: even a text field can autoenter the modification date.

Posted

Okay Bugsy,

We need to see a copy of the file, instead of playing 20 questions.

Lee

Posted

Pull Down Menu 1 (field 1):

- One week

- Two weeks

Pull Down Menu 2 (field 2):

- UPS

- Fedex

Field 3 (date)

- 00/00/2008

User selects from field 1 (ship date) and his/her method of shipping from field 2 (shipping method) a date is generated and placed within field 3 (arrival date). Hope this helps.

Posted

The third field must be a date field which autoenters the modification date.

You didn't say if this solution was good for you.

Field 3 (date)

- 00/00/2008

...

Hope this helps.

Not more than before...

Why Field 3 contains: 00/00/2008 ?

( that isn't a valid date )

Posted

The date field is auto-entered whenever a new record is created, however it changes when the user selects a different item from the drop down list. 00/00/0008 was only used to illustrate that a date field was used.

Posted

I have to go newly to an English school !

Your first post: "When either of the two drop down menus have changed a new date [color:red]should appear within the date field"

So we thought that that was your problem.

Your last post:"The date field is auto-entered whenever a new record is created, [color:red]however it changes when the user selects a different item from the drop down list"

So, what is really what you want ?

BTW: I still think that you need that the date field autoenters the "modification" date, not the "creation" date

Posted

Re-reading and re-reading and re-reading this post, I finally discovered that you never said that the new date must be the current one !

So I went to read all your older post and there was only one ( ambiguos ) that, with this one, is more understandable.

IF

the due date must be: release date + 10 on creation

BUT

must change to: release date + weeks + shipping method

THEN

due date autoenters this calc:

Case(

IsEmpty ( weeks ) or IsEmpty ( shipping method ) ; release date + 10;

weeks = "One week" or shipping method = "UPS"; release date + 9;

weeks = "Two weeks" and shipping method = "UPS"; release date + 16;

weeks = "One week" and shipping method = "Fedex"; release date + 11;

weeks = "Two weeks" and shipping method = "Fedex"; release date + 18

)

Note that 9, 16, 11, and 18 are sure incorrect numbers of days, but I need them for this example.

Attached an example file

BugsyOhar_problem.zip

Posted

Thanks for all your help in interpreting my bad english. Everything appears to be working with one exception. Based on your example the owner would like to have the ability to manually change the due date and have the release date reflect an earlier time frame. Looking at your calculation, is this something that can be easily added?

Posted

due date = release date + 10

so:

release date = due date - 10

If you want that earlier result to appear into the field: release date, you'll have to set an auto-enter calc ( always evaluate ) even for that field...

A calc of this type:

Case(

Get(ActiveFieldName) = "due date"; due date - 10 ;

release date

)

-----------------

AND

to add a line to the Case ( ) function of the due date calc:

Case(

[color:green]Get(ActiveFieldName) = "due date"; due date ;

IsEmpty ( weeks ) or IsEmpty ( shipping method ) ; release date + 10;

weeks = "One week" [color:red]and shipping method = "UPS"; release date + 9;

weeks = "Two weeks" and shipping method = "UPS"; release date + 16;

weeks = "One week" and shipping method = "Fedex"; release date + 11;

weeks = "Two weeks" and shipping method = "Fedex"; release date + 18

)

P.S.: [color:red]and ( not or ): that was a typo into my earlier calc

Posted

Thanks again for your help on this project. It seems every time a problem is solved, another request is being made. On the creation of a new record, is there a way to auto-enter a date into the release date field while also increasing it by an additional 10 days on record creation given the added calculation?

Posted

I have it setup exactly as you stated. The field release date has both the autoenter of the creation date as well as the calculation. When a new record is created the release date is showing todays date (9/4). It's not adding the additional 10 days to the release date field. On the creation of a new record, the release date should indicate a date of 9/14.

Posted

Maybe we haven't so much feeling !

Wasn't due date to be release date + 10 ?

BTW: change the two autoenter options to only one with this calc:

Case(

Get(ActiveFieldName) = "due date"; due date - 10 ;

Get(CurrentDate) + 10

)

Posted

Perhaps I'm doing something wrong. The calculation changes have been made but on the creation of a new record todays date still appears. Could you apply the changes to the file you sent earlier? Maybe my mistake is in the coding.

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