Results 1 to 24 of 24

Thread: Help needed....pls

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2010
    Posts
    23

    Help needed....pls

    Pls see attachment.i want roundoff option for grand total and total qty......pls help meee
    Attached Files Attached Files

  2. #2
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Help needed....pls

    Both fields are STRING type
    You should convert them to numeric in order to format

    You could use the ToNumber function

    JG

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2010
    Posts
    23

    Re: Help needed....pls

    How to convert.pls give me the steps to convert....

  4. #4
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Re: Help needed....pls

    you should find examples in the Help file included...
    It must be something like..Right click the field->Format->display(or something like that->click on x-1 to the right of the textbox and then type ToNumber(yourField) in the code window... sorry I can't help you more b'cos I don't have crxi installed...

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Aug 2010
    Posts
    23

    Re: Help needed....pls

    Thnx for reply,but i cant find & i am using cr 8.5

  6. #6
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Help needed....pls

    Insert a new formula field, name it FTotal (or whatever you like)
    Inside the formula, write :
    Code:
    ToNumber({print.total})
    Place this formula in the detail section instead of your actual field print.total
    You can format with decimals now because it's numeric data
    You can insert a Summary for this field OR you can do it the same with your field print.grand_total (but this you are going to place in report footer section)

    JG
    Last edited by jggtz; Aug 31st, 2010 at 01:36 AM. Reason: Syntax error in ToNumber, must be only ToNumber(field)

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Aug 2010
    Posts
    23

    Re: Help needed....pls

    Thnx jg , but while inserting the formula some error occurs...one very small help..please do the changes in my attached file & post.......thnx in advance

  8. #8
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Help needed....pls

    Check it !

    JG
    Attached Files Attached Files

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Aug 2010
    Posts
    23

    Re: Help needed....pls

    thank u very much....this is what i want..& one thing that 0.00
    seen in all lines is there any way to disable that.& i need that total qnty ALSO...

  10. #10
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Help needed....pls

    To Suppress the zeroes :
    1 Click rigth button over every field that you need to format
    2 Select Format Field
    3 The Format Editor window appears
    4 Select Number tab
    5 Click on Customize button
    6 The Custom Style window appears
    7 Check in Suppress If Zero
    8 Accept & close the opened windows and that's it

    JG

  11. #11

    Thread Starter
    Junior Member
    Join Date
    Aug 2010
    Posts
    23

    Re: Help needed....pls

    thanku very much...i got it for total quantity???

  12. #12
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Help needed....pls

    For total quantity
    Insert a new formula (name MyTotQty)
    Inside the formula, write :
    Code:
    ToNumber({print.totalqnty})
    (replace {print.totalqnty} with your actual field name)
    And place that formula in the desired section

    JG

  13. #13

    Thread Starter
    Junior Member
    Join Date
    Aug 2010
    Posts
    23

    Re: Help needed....pls

    thnx bro,.i think i want to add TOTALQTY field in my database..how to do ...pls help me with the attachment....

    thnx JGGTZ..
    Last edited by selvasathyam; Sep 1st, 2010 at 04:09 AM.

  14. #14
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Help needed....pls

    Normally, if the field is going to contain numeric data, we design that field numeric type data in the table
    Since the field print.qty is string data type, you have to convert to numeric in order to sum it and get a total


    Post your actual rpt (again so you don't lose your last changes)

    JG

  15. #15

    Thread Starter
    Junior Member
    Join Date
    Aug 2010
    Posts
    23

    Re: Help needed....pls

    This is the actual report......
    Attached Files Attached Files

  16. #16
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Help needed....pls

    That's all

    JG
    Attached Files Attached Files

  17. #17

    Thread Starter
    Junior Member
    Join Date
    Aug 2010
    Posts
    23

    Re: Help needed....pls

    the report comes error that the string is non-numeric

  18. #18

    Thread Starter
    Junior Member
    Join Date
    Aug 2010
    Posts
    23

    Re: Help needed....pls

    no thanx bro....i done it...thank u...

  19. #19

    Thread Starter
    Junior Member
    Join Date
    Aug 2010
    Posts
    23

    Re: Help needed....pls

    some suggetions in VB 6 ,CAN I POST HERE......


    THNX JGGTZ...

  20. #20

    Thread Starter
    Junior Member
    Join Date
    Aug 2010
    Posts
    23

    Re: Help needed....pls

    JGGTZ...
    ONE MORE HELP PLS....
    continue in nextpage while printing..

  21. #21
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Help needed....pls

    As I understand you want to print a bill every page :
    1 Click right button over left side of the report in design view (over any of the sections' name)
    2 Click on Section Expert
    3 The Section Expert window appears
    4 Select 'Group Header #1 ...' in the left side of the window
    5 Check 'New Page Before'

    If that's not what you want, then explain a little more

    JG

  22. #22

    Thread Starter
    Junior Member
    Join Date
    Aug 2010
    Posts
    23

    Re: Help needed....pls

    SORRY,
    IN THAT REPORT there is 7 details ,you could see it in my report,if we write 10 details ,the balance 3 detalis should print in next page automatically.and the grandtotal also should come in that page....

    selvasathyam...

  23. #23

    Thread Starter
    Junior Member
    Join Date
    Aug 2010
    Posts
    23

    Re: Help needed....pls

    sir ,
    i had added an image of my billing software created by VB6 ,i want round off for the rounded ones.....see the image pls......
    Attached Images Attached Images  

  24. #24
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Re: Help needed....pls

    Pls don't double post. It can be easily discovered
    Our mods don't like this

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width