I have several folders in ms outlook which i would like to turn their reading pane option to "off", however according to the outlook help files this has to be done on each folder individually.
Does anyone knows of a "trick" which can change this setting to all folders at once rather than going...
I'm glad that you sorted your problem.
Since you have solved your issue there is no need to upload the sample because i was simply going to take a look where the problem was :)
probably the problem is that either your FirstName or Surname fields are null. In that case you can use an if statement to check whether any of the fields are none i.e.
If Not IsNull(Me.FirstName) And Not IsNull(Me.Surname) Then
Label7.Caption = 'reference the controls here
Else
Label7.Caption...
try
Private Sub cmdPrint_Click()
Dim str_Filter As String
str_Filter = "[Casenumber] =" & Me.txtCase
DoCmd.OpenReport "rptSCT", acViewNormal, ,str_Filter
End Sub
Note that a comma has been added near the str_Filter
what is the datatype of your field? Because if it is "Text" and not "Number" you will need to add the quotes i.e.
str_Filter = "[Case Number] = '" & Me.Case & "'"