Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by vijip2001

  1. vijip2001

    Handle null values in formula

    It works.I am not what extra characters i had. I deleted the field and recreated it and it works. Thanks for all the help. Viji
  2. vijip2001

    Handle null values in formula

    I created a formula column in the Seagate crystal reports version 8.0.1.0. The column in the recordset rstQtPrd_ttx.PCS_CHARGED is a number column. The formula i used is : if ( isnull({rstQtPrd_ttx.PCS_CHARGED}) or trim(cstr({rstQtPrd_ttx.PCS_CHARGED})) = "" ) then 0 else...
  3. vijip2001

    Handle null values in formula

    Tried it. It sill returns only TRUE. Does not return 0.
  4. vijip2001

    Handle null values in formula

    I tried: if (isnull({rstQtPrd_ttx.PCS_CHARGED}) or trim(cstr({rstQtPrd_ttx.PCS_CHARGED})) = "") then {rstQtPrd_ttx.PCS_CHARGED} = 0 else {rstQtPrd_ttx.PCS_CHARGED} = {rstQtPrd_ttx.PCS_CHARGED} This returns a TRUE. How do i make it return 0 if the value is null? Thanks for the help. Viji
  5. vijip2001

    Handle null values in formula

    All, I am trying to write a formula in crystal report 8.0.1. I want to handle a number column that is null. Can someone please help? Here is the formula: if isnull({rstQtPrd_ttx.PCS_CHARGED}) = true or trim({rstQtPrd_ttx.PCS_CHARGED}) = "" then {rstQtPrd_ttx.PCS_CHARGED}=0 else...
  6. vijip2001

    Query to join on 5 tables

    It worked. I had an exta "AND" and a extra "(" in the query. Thanks for all the help. Viji
  7. vijip2001

    Null values in a Query

    All, I am using vb6 that executes query against RDB. How do i check for null values in a query? I oracle i use "select nvl(column,0) from dual;" Can someone help me? Thanks, Viji
  8. vijip2001

    Error- function sequence error

    All, I am using VB6.0. I am geting 'function sequence error' in Do loop, when i do a recordset.movenext Can you please tell me where i am wrong? Thanks, Subha strSqlProdSeq = "SELECT DISTINCT SEQ_NUMBER" & _ " FROM QT_PRODUCTION Where " & _...
  9. vijip2001

    Query to join on 5 tables

    All, I am using VB 6.0. I am trying to join 5 tables in a query and pass the columns to crystal report through a recorset. Here is the query. The first left join works fine. When i add the second left join, throws error saying 'expecting a predicate'. Can someone please help? Is there...
  10. vijip2001

    Scroll bar in VB6.0

    Hello all, Just got a chance to get back to the printer problem. The checkbox in the printer dialog box is populated to dynamic string, which gets all the printers mapped to the server. So the check box expands and goes beyond the screen. The form where my check box is placed does not...
  11. vijip2001

    Scroll bar in VB6.0

    How do i do that? Then how will the users scroll the list of printers? Thanks, Viji
  12. vijip2001

    Scroll bar in VB6.0

    Hello all, I have a VB 6.0 application, which picks up the list of system printers, when user chooses the print button. The list of printers populates a check box in a form and user picks the printer which they want to print. Since this application is hosted in a citrix metaframe...
  13. vijip2001

    Compile error.

    Added the reference 'Microsoft ActiveX Data Objects 2.5 library' and still gives the same old error. Thanks, Viji
  14. vijip2001

    Compile error.

    Yes. I knew ADO is not same as DAO. But i am not getting any option for ADO libraries in the reference options. It lists onle DAO 3.6 as an option. Is there any way to add that reference? Yes, the code does work with Access 2003(with DAO recordset). I will try to use the syntax options that...
  15. vijip2001

    Compile error.

    Am i suppose to add any specific reference?? Since the application has lots of places where i need to do it, is there any way i can globally define a collection reference? When i try to replace 'rs.last_ticket_number' by collection reference ('rs!last_ticket_number') in one...

Part and Inventory Search

Back
Top