T Trilback Registered User. Local time Today, 14:34 Joined Nov 29, 2013 Messages 88 Dec 13, 2014 #1 I have an access forum that I need to have a textbox count how many rows have dates in my "Ship_To_Date_HP_" field
I have an access forum that I need to have a textbox count how many rows have dates in my "Ship_To_Date_HP_" field
pbaldy Wino Moderator Staff member Local time Today, 11:34 Joined Aug 30, 2003 Messages 36,269 Dec 13, 2014 #2 Try a textbox in the form footer: =Sum(IIf(IsDate(FieldName), 1, 0))
T Trilback Registered User. Local time Today, 14:34 Joined Nov 29, 2013 Messages 88 Dec 14, 2014 #3 pbaldy said: Try a textbox in the form footer: =Sum(IIf(IsDate(FieldName), 1, 0)) Click to expand... I have one in the forum header but its not reading right as I can count 5 from the data I have and it says 0 right now. Code: =Sum(IIf(IsDate([Receive_From_Date(HP)]),1,0))
pbaldy said: Try a textbox in the form footer: =Sum(IIf(IsDate(FieldName), 1, 0)) Click to expand... I have one in the forum header but its not reading right as I can count 5 from the data I have and it says 0 right now. Code: =Sum(IIf(IsDate([Receive_From_Date(HP)]),1,0))
pbaldy Wino Moderator Staff member Local time Today, 11:34 Joined Aug 30, 2003 Messages 36,269 Dec 14, 2014 #4 Worked for me in a test. Are you sure that's a date/time field?
T Trilback Registered User. Local time Today, 14:34 Joined Nov 29, 2013 Messages 88 Dec 14, 2014 #5 pbaldy said: Worked for me in a test. Are you sure that's a date/time field? Click to expand... My brain was not have been working yesterday. It now works.
pbaldy said: Worked for me in a test. Are you sure that's a date/time field? Click to expand... My brain was not have been working yesterday. It now works.
T Trilback Registered User. Local time Today, 14:34 Joined Nov 29, 2013 Messages 88 Dec 14, 2014 #6 Say I have another field that I wanted to sum up that has numbers only would I still do the same thing but without the isdate function?
Say I have another field that I wanted to sum up that has numbers only would I still do the same thing but without the isdate function?
pbaldy Wino Moderator Staff member Local time Today, 11:34 Joined Aug 30, 2003 Messages 36,269 Dec 14, 2014 #7 Depends on your specifics. You can test for >0, use IsNumeric() or IsNull(), etc.