@ @stan Registered User. Local time Yesterday, 17:13 Joined Feb 26, 2013 Messages 29 Mar 13, 2015 #1 I can not have any negitive numbers show up in my field so I need to round up and negitives to "0"
pr2-eugin Super Moderator Local time Today, 01:13 Joined Nov 30, 2011 Messages 8,494 Mar 13, 2015 #2 You could use an IIF, something like, Code: NewField : IIF([OldFieldName] < 0, 0, [OldFieldName])
@ @stan Registered User. Local time Yesterday, 17:13 Joined Feb 26, 2013 Messages 29 Mar 13, 2015 #3 Ok, tried, when running it thinks that the [fieldname] is a parameter and askes me to enter parameter value....
Ok, tried, when running it thinks that the [fieldname] is a parameter and askes me to enter parameter value....
pr2-eugin Super Moderator Local time Today, 01:13 Joined Nov 30, 2011 Messages 8,494 Mar 13, 2015 #4 Could you post your actual SQL Query please?
Brianwarnock Retired Local time Today, 01:13 Joined Jun 2, 2003 Messages 12,701 Mar 13, 2015 #5 This happens when you use an incorrect fieldname, you did spell your fieldname correctly? Brian
@ @stan Registered User. Local time Yesterday, 17:13 Joined Feb 26, 2013 Messages 29 Mar 13, 2015 #6 the field name is an alias, I created in the query to create a number from two different dates.
@ @stan Registered User. Local time Yesterday, 17:13 Joined Feb 26, 2013 Messages 29 Mar 13, 2015 #7 the first is, the [selected date ] from a form -[entry date of object field] most come out + but for those who's [entry date] starts later in the month in question thiers comes out as a -
the first is, the [selected date ] from a form -[entry date of object field] most come out + but for those who's [entry date] starts later in the month in question thiers comes out as a -
@ @stan Registered User. Local time Yesterday, 17:13 Joined Feb 26, 2013 Messages 29 Mar 13, 2015 #8 Brain thank you for asking about the field name, Iv done that a fee times here in the middle of the night
Brain thank you for asking about the field name, Iv done that a fee times here in the middle of the night
pr2-eugin Super Moderator Local time Today, 01:13 Joined Nov 30, 2011 Messages 8,494 Mar 13, 2015 #9 SQL Please.
@ @stan Registered User. Local time Yesterday, 17:13 Joined Feb 26, 2013 Messages 29 Mar 13, 2015 #10 IIF works as long as I dont try to do it from within the same query thank you all for your help
Brianwarnock Retired Local time Today, 01:13 Joined Jun 2, 2003 Messages 12,701 Mar 13, 2015 #11 It's been a while but I don't think that you can use the alias in the Iif , I think you need to go back to the original calculation Eg c: a+b Cannot say iif(c= Have to say iif(a+b Brian Edit as you have noticed you can use the alias in a later query.
It's been a while but I don't think that you can use the alias in the Iif , I think you need to go back to the original calculation Eg c: a+b Cannot say iif(c= Have to say iif(a+b Brian Edit as you have noticed you can use the alias in a later query.