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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Write back in Cr 8.5 ?? 1

Status
Not open for further replies.

petrovlis

Programmer
Jan 15, 2002
114
NL
I need to update a field in a --Goldmine 6.7 dbase-- table with a value
after I have sent a CR-report to that company.

I now run CR 8.5 with VisualCut and Postcast Pro, outside Goldmine, to do our mailings.

Thanks for any help.
William
 
I don't think Crystal allows database updates. What you could do is use Save As to make a duplicate of the report which selects the same data in a form suitable for export as text / extract file. Then maybe use the extract file to do the updates using some other software.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Crystal is a report writer, consider writing to an Access table, and then using an Access query to do the update (Access has wizards to assist with this, it's simple fare).

-k
 
You can write a User Function Library (UFL) or use a 3rd-party UFL that allow a Crystal formula to execute an SQL statement. For a list of 3rd-party tools see:
My "CUT Light" UFL provides two functions for executing SQL statements against ODBC data sources. One function allows you to execute stetements with no return values (e.g., Update or Insert statements). The other function allows you to execute a SQL statement that returns a single value.

- Ido

Visual CUT & DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Ido,

Won't Visual Cut update the databse for him?

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"making predictions is tough, especially about the future" - Yogi Berra
 
No, Visual CUT can't update a given field, which was the original question.

However, now that you made me think about it, Visual CUT can not only take care of the process of sending the report to each company (bursting), if you turn on the option of logging processing to an ODBC target, a record would be created in a log table for each company that was processed. That record would include the Group Value (e.g., "Company_ID"). It would then be easy to create an update statement that takes that information and updates the desired field in another table.

The advantage of that approach is that the log table contains a status field that shows whether the exporting and emailing was successful. This means the update of the target field would occur only if a failure (e.g., email address was missing) didn't occur.

Cheers,
- Ido

Visual CUT & DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top