时间问题,6年仍然没有答案.... [英] Time question, 6 years still no answer....

查看:53
本文介绍了时间问题,6年仍然没有答案....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于这个主题有成千上万的条目,但是经过6年的研究和研究,我还没有找到一个简单的问题的简单答案:


我有两个字段:[时间开始],[时间结束]格式为上午和下午以及将字段验证为短时间掩码的掩码。


我需要知道的是如何计算小时和分钟的差异?


6年后我仍然无法做到!每个想要帮助的人都会给我一个从不起作用的日期功能。它要么给我一堆我不能理解的数字,要么它只给我几小时但没有分钟。


我尝试格式化我的字段,所以它们都很相似但是也不起作用。

我尝试使用hh:nn:ss还是没有去!

我尝试使用带格式函数的日期,nada!

我试过简单[时间结束] - [时间开始] =一堆数字和一个E也在那里。不知道那是什么。


总而言之,我让人们向我发送代码,复杂的公式以及所有类型的东西仍然需要使用我的桌面计算器输入差异6年后的两个领域。


有没有人,我的意思是地球上或其他任何人都可以回答这个简单的问题???????????????????? ????????????????????? ????????????

There are literally thousands and thousands of entry about this subject but still after 6 years of looking and researching I haven''t found a simple answer to a really simple question:

I have two fields: [time start], [time end] format as am and pm and a mask that validate the field as a short time mask.

What I need to know is how to calculate the difference in hours and in minutes?

6 years after I still can''t do it! Everybody that wants to help gives me a datediff function that never works. it either gives me a bunch of number that I can''t make any sense of or it only gives me hours but no minutes.

I tried formating my field so they are all alike but that doesn''t work either.
I tried using "hh:nn:ss" still no go!
I tried using the datediff with a format function, nada!
I tried simply [time end]-[time start] = bunch of number and a E in there too. NO idea what that is.

In all, I have had people sending me codes, complicate formulas, and all sort of things to still having to use my desktop calculator to input the difference between the two field after 6 years.

Is there anyone, I mean anyone on Earth or beyond that can answer this simple question?????????????????????????????????????????? ????????????

推荐答案

首先,您有日期字段还是文本字段?当你说格式为上午和下午时,我不确定你的意思。
First, do you have a date field or a text field? I''m not sure exactly what you mean when you say "format as am and pm".


原谅我,我会扩展:


我有一张桌子,我可以把时间花在工作上。它被称为[任务细节]


我在表格的[开始时间]字段中输入作业的开始时间。时间的格式是24小时。当我在23:00输入时,它基本上会在晚上11点返回。


我对我的结束时间做同样的事情并且它的结构方式相同。


现在,,,,我可以在[结束时间] - [开始时间]的表格中有一个未绑定的字段,它会返回我当天在工作上花费的正确时间。


但是当我想创建一个查询来生成一个报表[任务详细信息]时,我的时间被保留,我无法访问来计算两个时间[开始时间]和[之间的差异]结束时间]


i要么得到错误消息;一堆毫无意义的数字;零,或只是小时,但如果是在一小时以下我得零。
Forgive me I will expand:

I have a table in which I keep my time spent for jobs. It is called [task detail]

I enter my starting time for a job in the field [start time] which is on a form. the format of the time is 24 hours. when I type in 23:00 it basically returns me 11pm.

I do the same thing with my end time and it is formated the same way.

Now,,,, I can have a unbound field in form that has [end time]-[start time] and it returns me the correct time spent on a job that day.

but when I want to create a query to produce a report out of the table [task details] where my time is kept I can''t get Access to calculate the difference between the two time [start time] and [end time]

i either get Error messages; a bunch of numbers that make no sense; zero, or just the hour, but if is is under one hour I get zero.


@ChipR


考虑到所需的事实,这个问题已经解决了几百次!你没有回答Chip的问题,这对我们帮助你至关重要!我们是在谈论定义为日期/时间的字段还是我们在谈论文本字段?


另外,您只是输入时间或日期/时间吗?

最后,你可以在窗体显示器上控制开始时间/结束时间的差异,但你无法控制你的报告做同样的事情。你能上传你的数据库吗?

Linq ; 0)>


这篇关于时间问题,6年仍然没有答案....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆