JLAZ Registered User. Local time Today, 08:23 Joined Sep 17, 2003 Messages 24 Sep 22, 2003 #1 I have a field I want to round up if there is anything past the decimal point. How do I do this? the decimal point is set to auto.
I have a field I want to round up if there is anything past the decimal point. How do I do this? the decimal point is set to auto.
R raskew AWF VIP Local time Today, 10:23 Joined Jun 2, 2001 Messages 2,731 Sep 23, 2003 #2 This little function should do it for you: Code: Function roundup(pNum As Double) As Integer roundup = IIf(pNum > Int(pNum), Int(pNum) + 1, pNum) End Function test it from the debug window with ? roundup(15.01) 16 your text-box Control Source would be something like: = roundup([myField]) HTH- Bob
This little function should do it for you: Code: Function roundup(pNum As Double) As Integer roundup = IIf(pNum > Int(pNum), Int(pNum) + 1, pNum) End Function test it from the debug window with ? roundup(15.01) 16 your text-box Control Source would be something like: = roundup([myField]) HTH- Bob
JLAZ Registered User. Local time Today, 08:23 Joined Sep 17, 2003 Messages 24 Sep 23, 2003 #3 Thanks but I need some more info I don't know much about VB or SQL Ok what module do I paste that into or what do I name the module. The field is in a querry
Thanks but I need some more info I don't know much about VB or SQL Ok what module do I paste that into or what do I name the module. The field is in a querry
R Rose412 Registered User. Local time Today, 16:23 Joined Aug 26, 2003 Messages 46 Sep 23, 2003 #4 Put this in a Field: cell in the query grid: Rounded Up: IIf([YourFieldName] > Int([YourFieldName]), Int([YourFieldName]) + 1, [YourFieldName])
Put this in a Field: cell in the query grid: Rounded Up: IIf([YourFieldName] > Int([YourFieldName]), Int([YourFieldName]) + 1, [YourFieldName])
JLAZ Registered User. Local time Today, 08:23 Joined Sep 17, 2003 Messages 24 Sep 23, 2003 #5 Hi raskew, I think I figured it out I pasted that inot a module and called it Utility Functions It works great. Thanks. Do you know how to pull info from a text field that has multiple lines. I need a specific line pulled but not all records have something in that specific line.
Hi raskew, I think I figured it out I pasted that inot a module and called it Utility Functions It works great. Thanks. Do you know how to pull info from a text field that has multiple lines. I need a specific line pulled but not all records have something in that specific line.
JLAZ Registered User. Local time Today, 08:23 Joined Sep 17, 2003 Messages 24 Sep 23, 2003 #6 Hi Rose412, Thanks for the reply, I'm going to try that to.
R raskew AWF VIP Local time Today, 10:23 Joined Jun 2, 2001 Messages 2,731 Sep 23, 2003 #7 JLAZ- I'm slow. Please provide a little more detail. Bob
JLAZ Registered User. Local time Today, 08:23 Joined Sep 17, 2003 Messages 24 Sep 23, 2003 #8 Hi raskew Ok here is the text field I'm working with EXAMPLE 1 : COMMENTS: RICHARD PESCI 909-823-1224 OR 909-823-2600 10AM-??? 1.5" DOORSILL HALL EXAMPLE 2: COMMENTS: FOYER I'm going to need to pull the info from the specific lines is there any way to do this In case you're wondering why the info was not put in seperate fields, the info was imported from another program and that is the way it was.
Hi raskew Ok here is the text field I'm working with EXAMPLE 1 : COMMENTS: RICHARD PESCI 909-823-1224 OR 909-823-2600 10AM-??? 1.5" DOORSILL HALL EXAMPLE 2: COMMENTS: FOYER I'm going to need to pull the info from the specific lines is there any way to do this In case you're wondering why the info was not put in seperate fields, the info was imported from another program and that is the way it was.