CrazyManiac
MIS
I'm using CR9 and MS SQL SERVER (OLEDB). I have two tables Countries and Sales.
Countries:
ID | Name
1 USA
2 GB
3 France
4 WestSamoa
......
Sales:
SaleId | Customer | CustomerCountryID
1 aaa 1
2 aaa 1
3 bbb 3
.....................................
The report has a parameter field named "{?CountryId}". The report is viewed trough VB and report recieves the country Id as parameter. The problem is the following:
user may choose country name i.e. WestSamoa, but there are no customers from WestSamoa. The report recieves no records, but I need to show the country name in the reportheader. How can I get country name by it's id even there are no records selected?
Countries:
ID | Name
1 USA
2 GB
3 France
4 WestSamoa
......
Sales:
SaleId | Customer | CustomerCountryID
1 aaa 1
2 aaa 1
3 bbb 3
.....................................
The report has a parameter field named "{?CountryId}". The report is viewed trough VB and report recieves the country Id as parameter. The problem is the following:
user may choose country name i.e. WestSamoa, but there are no customers from WestSamoa. The report recieves no records, but I need to show the country name in the reportheader. How can I get country name by it's id even there are no records selected?