What value must I use with this?

Arcadia

Registered User.
Local time
Today, 05:32
Joined
Jan 25, 2013
Messages
66
Hello everyone

I hope that someone can help me out with this stupid question :banghead:

By a mistake all departure times and flight number of KL723, after 1 May 2013 have to increase by 1 hour automatic!
So i have to make a query that will do it automatic.

Does someone know the right value i have to type in the critiria box of date and the critira box of time ?? :)

For a screenshot please send me a message!

I really hope someone can help me out:)
 
Does someone know the right value i have to type in the critiria box of date and the critira box of time ??
smile.gif

You make it sound like Date and Time are seperate fields, which is a bad idea, you can use the General Date format of the Date/Time field type to get the date and time into one field. If you are using 2 fields to store this data, now is a good instance to store it correctly.

The only criteria you would use is on the flight number field ("KL723") and the date field (>#5/1/2013# or >#1/5/2013# depending on your country).
 
Okay.. but that only shows the value date.. I also want to know what to put into the time critira to increase it with one 1 hour.

And i really want to leave them in two separate fields :)
 
And i really want to leave them in two separate fields

Any logic or rationale behind that?

I also want to know what to put into the time critira to increase it with one 1 hour.

Criteria are limiting parameters. You are not limiting the time value, ergo, there is no time criterion.

If your question is 'how do I calculate the new time?', then you want to use the DateAdd function (http://www.techonthenet.com/access/functions/date/dateadd.php)
 
I tried this in the data field but it does not work :(

DateAdd("h";+1;>#1-5-2013#)
 
Why don't you post your SQL statement and lets see if we can get you on the right track.
 
Try this:
Code:
UPDATE Flights SET Flights.FTime = DateAdd("h",1,[FTime])
WHERE (((Flights.Flight)="KL723") AND ((Flights.FDate)>#5/13/2013#));
 

Users who are viewing this thread

Back
Top Bottom