Alan Forman
Registered User.
- Local time
- Today, 13:04
- Joined
- Apr 8, 2004
- Messages
- 30
Hi Guys
I have a main report called rpt_Presentation, and lots of sub reports which I only what to show one at a time depending on a user choice by changing a field called 'Type_of_Business_Code' which has numerical values 1 to 10.
The following code I've put on a 'Report Open'
I've tried .....
Select Case Me.Type_of_Business_Code
Case "1"
Reports!rpt_Presentation!rpt_Package.Visible = False
Reports!rpt_Presentation!rpt_Commercial_Combined.Visible = True
Case "2"
Reports!rpt_Presentation!rpt_Package.Visible = True
Reports!rpt_Presentation!rpt_Commercial_Combined.Visible = False
End Select
But that returns a .....
Run-Time Error "2427", You entered an expression that has no value
If I rem out the code, the numeric field has got data in.
Any help would be great.
Thanks
I have a main report called rpt_Presentation, and lots of sub reports which I only what to show one at a time depending on a user choice by changing a field called 'Type_of_Business_Code' which has numerical values 1 to 10.
The following code I've put on a 'Report Open'
I've tried .....
Select Case Me.Type_of_Business_Code
Case "1"
Reports!rpt_Presentation!rpt_Package.Visible = False
Reports!rpt_Presentation!rpt_Commercial_Combined.Visible = True
Case "2"
Reports!rpt_Presentation!rpt_Package.Visible = True
Reports!rpt_Presentation!rpt_Commercial_Combined.Visible = False
End Select
But that returns a .....
Run-Time Error "2427", You entered an expression that has no value
If I rem out the code, the numeric field has got data in.
Any help would be great.
Thanks