PC Review


Reply
Thread Tools Rate Thread

Combo Box Calculations

 
 
Gaetanm via AccessMonster.com
Guest
Posts: n/a
 
      7th Nov 2006
I have a database that is a job time tracking. I have the DateDiff down I
have a query
that gives me the time for the present week in hh:nn, and total minutes.
I would like to have a text box that would show the accumulated work time
for this week. The query has EmployeeId, StartTime, StopTime, TotalTime,
TotalHoursMinutes,
On my form I have a combo box that gives me employeeID. This info comes from
the Employee Table. I would like to have a Text box on the form that would
give me the total hours he has logged plus Now() the employeeid comes from
the combo box.

I would like the employee at anytime to pull down the combo box get the
EmployeeID
In the TEXT box auto-add the time from StartDate – Stopdate plus if there is
a Startdate without a StopDate add that Startdate – Now()


Can anyone please help

Gaetanm

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200611/1

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      7th Nov 2006
Since StopDate may be Null, rather than populated, you can use the Nz
function (Nz([StopDate], Now())) instead of simply [StopDate]

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Gaetanm via AccessMonster.com" <u28527@uwe> wrote in message
news:68f1c3a761adb@uwe...
>I have a database that is a job time tracking. I have the DateDiff down I
> have a query
> that gives me the time for the present week in hh:nn, and total minutes.
> I would like to have a text box that would show the accumulated work time
> for this week. The query has EmployeeId, StartTime, StopTime, TotalTime,
> TotalHoursMinutes,
> On my form I have a combo box that gives me employeeID. This info comes
> from
> the Employee Table. I would like to have a Text box on the form that would
> give me the total hours he has logged plus Now() the employeeid comes
> from
> the combo box.
>
> I would like the employee at anytime to pull down the combo box get the
> EmployeeID
> In the TEXT box auto-add the time from StartDate - Stopdate plus if there
> is
> a Startdate without a StopDate add that Startdate - Now()
>
>
> Can anyone please help
>
> Gaetanm
>
> --
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/For...ccess/200611/1
>



 
Reply With Quote
 
Gaetanm via AccessMonster.com
Guest
Posts: n/a
 
      7th Nov 2006
Douglas J. Steele wrote:
>Since StopDate may be Null, rather than populated, you can use the Nz
>function (Nz([StopDate], Now())) instead of simply [StopDate]
>
>>I have a database that is a job time tracking. I have the DateDiff down I
>> have a query

>[quoted text clipped - 18 lines]
>>
>> Gaetanm

Thanks for the quick responce Steve.
But how would I get the EmployyeID Variable from the combo Box
because I'm just looking at that perticular employee and then in my
query I have total minutes minus the Null stopdate.
how do I total the minutes add the last StartDate {Null StopDate} in minutes
to the NZ function?

Gaetanm

--
Message posted via http://www.accessmonster.com

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo Boxes Calculations Jupino58 Microsoft Excel Worksheet Functions 4 24th Apr 2008 06:58 PM
More than 8 calculations from a combo box =?Utf-8?B?QnJ5bg==?= Microsoft Excel Misc 3 11th Feb 2007 03:38 PM
combo box calculations =?Utf-8?B?aGVsc3lzYmVscw==?= Microsoft Access Queries 1 21st Feb 2006 01:22 PM
Displaying values & calculations using values from Combo boxes Fie Microsoft Access Forms 4 12th Jan 2006 05:01 PM
Perfoming calculations on answers from pervious calculations =?Utf-8?B?S2FybCBFdmVyZXR0?= Microsoft Excel Misc 1 6th Oct 2004 02:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:43 PM.