jonnywakey
Registered User.
- Local time
- Today, 21:23
- Joined
- Feb 2, 2009
- Messages
- 33
Hi all,
I have developed an access db to track laboratory sample process times but am stuck with the following:
I have a form (Job Tracker Form) which has a combobox [Task_Ref], the form
also has the following text boxes which I need to use when performing a calculation:-
[Start_time]
[Cycle]
[Est_Comp_Time]
Processes are stored in table (Task Picklist) which contains process and cycle time.
Combobox [Task_Ref] on form calls the following rowsource:-
SELECT [Task Picklist].[Task Ref], [Task Picklist].[Cycle] FROM [Task Picklist] ORDER BY [Task Ref];
[Cycle] textbox contains =[Task_Ref].[column](2) to pull the cycle time from the selection made in [Task_Ref] combobox.
What I would like to happen is that in the "After Update" event of [Task_Ref] combobox, the [Est_comp_time] textbox is populated with the following calculation:-
[Est_Comp_Time]=[Start_time]+[Cycle] eg
Start time = 20:00 + cycle time of 60 mins = Est Comp Time of 21:00hrs
I have tried to use the DateAdd function with "n" as the minute control but am failing, can anyone help?
Thanks
jonny
I have developed an access db to track laboratory sample process times but am stuck with the following:
I have a form (Job Tracker Form) which has a combobox [Task_Ref], the form
also has the following text boxes which I need to use when performing a calculation:-
[Start_time]
[Cycle]
[Est_Comp_Time]
Processes are stored in table (Task Picklist) which contains process and cycle time.
Combobox [Task_Ref] on form calls the following rowsource:-
SELECT [Task Picklist].[Task Ref], [Task Picklist].[Cycle] FROM [Task Picklist] ORDER BY [Task Ref];
[Cycle] textbox contains =[Task_Ref].[column](2) to pull the cycle time from the selection made in [Task_Ref] combobox.
What I would like to happen is that in the "After Update" event of [Task_Ref] combobox, the [Est_comp_time] textbox is populated with the following calculation:-
[Est_Comp_Time]=[Start_time]+[Cycle] eg
Start time = 20:00 + cycle time of 60 mins = Est Comp Time of 21:00hrs
I have tried to use the DateAdd function with "n" as the minute control but am failing, can anyone help?
Thanks
jonny