Crystal Reports and Updating a database field.

Posted on 2007-07-29
Last Modified: 2008-01-09
I am using Crystal Reports XI, I want to query a database and at the same time update a field in that database when crystal reads the record, or have it prompt me to alter the records after the fact.  Basically I am getting all "Closed" sales tickets, and want to chnage them to "Billed" status when the crystal report runs.  Does anyone know how to do this, or if it can even be done?
Question by:rrococi2
    LVL 28

    Accepted Solution

    I have accomplished similar tasks by calling a Stored Procedure.
    You can either prompt the user or just do the update and then return the records.
    Another option would be to use CUT Light from
    This provides you the ability to execute SQL statements from a formula.
    LVL 18

    Expert Comment

    Be aware though, Crystal Reports requests a Read Only connection to the database and some databases may honor that request even applying it to Stored Procedures.  THis would prevent updating any record through Crystal Reports.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now