NeedsHelp101
Technical User
Hi,
I'm trying to concatenate two Time fields in a query. Sometimes the second field will be null, so I wrote:
(the lengths are associated with a MasterName)
OR
No matter what I try, though, if the second field is null,
I will get something like 00:30 /
I need to get rid of the backslash. Can someone help?
Thanks!
I'm trying to concatenate two Time fields in a query. Sometimes the second field will be null, so I wrote:
(the lengths are associated with a MasterName)
Code:
Duration: Format([tblMasterNames.Length],"Short Time") & ("/"+Format([tblMasterNames_1.Length],"Short Time"))
and in SQL:
Format([tblMasterNames.Length],"Short Time") & ("/"+Format([tblMasterNames_1.Length],"Short Time")) AS Duration
Code:
Duration1: IIf([tblISCI].[Master2]=Null,Format([tblMasterNames.Length],"Short Time"),Format([tblMasterNames.Length],"Short Time") & " / " & Format([tblMasterNames_1.Length],"Short Time"))
and in SQL:
IIf([tblISCI].[Master2]=Null,Format([tblMasterNames.Length],"Short Time"),Format([tblMasterNames.Length],"Short Time") & " / " & Format([tblMasterNames_1.Length],"Short Time")) AS Duration1
No matter what I try, though, if the second field is null,
I will get something like 00:30 /
I need to get rid of the backslash. Can someone help?
Thanks!