Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

How can I say to Crystal IFieldsObjects report to get only the records from an Access Database based on an SQL Query?

 

In other words:

My CR Report have some IFieldsObjects, but they list all records that exists in the target table, but I what it only to list the records when with a spesific criteria...

 

(SELECT * FROM _table_ WHERE _field_ = "bla")

Posted

EFileTahi-A

 

You can use the RecordSelectionFormula

 


crReportDocument.RecordSelectionFormula = "{A_Table.Field_In_Table} = Something ";
[/Code]

 

You can also create your own data tables with just the information you want and then tell CR where to get the data.

 

[Code]
crReportDocument.Database.Tables[0].SetDataSource(A Table);
[/Code]

Posted (edited)

Linking a filtered datatable to the Crystal Report fulfilled all my needs...

 

Thank you once more.

 

By the way, I hope you can have internet soon at your home :)

Cheers!

 

- THREAD CLOSED -

Edited by EFileTahi-A

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...