Have you tried stripping the query of all extraneous tables, forms and what-nots? Then try recreating what I demonstrated above. See if it is something related to the complexity first. If it works, then we redirect our efforts toward decomplexifying things......
Add time in access using 2 fields
Collapse
X
-
Comment
-
Ok I just made a query based off of the query I sent as a screenshot and the formula works perfectly, except I don't need it in seconds, but that should be just changing the format.Comment
-
Yeah its weird that I just needed to make a query of a query to get it to work. So now if I switch my forms record source to this new query I'm hoping everything will still work.Comment
-
ok, son now I get a #error on this field if some of the data is missing, I'm assuming I need a Nz() the there somewhere. Would I put this in the front of the formula?Comment
-
Where exactly would I put Nz(Value], oCode:EndTimeOfProduction: DateAdd("n",[ProductionTime],[StartTimeOfProduction])Comment
-
Sorry I figured it out after I scratched my head and tried a few things. The only thing is I cannot get the seconds to disappear. I have the format set for medium time and its showing, for example 00:00:00 amComment
-
I also noticed that when it goes past midnight that it adds a date in front of it, is there away to make this not show?Comment
-
Perfect. Thank you so much. This is what the final Code ended up looking like.
Code:EndTimeOfProduction: Format(Nz(DateAdd("n",Nz([ProductionTime]),[StartTimeOfProduction])),"Medium Time")Comment
Comment