I have a combo box that displays all the tables in my database. Every table has a field for INITIALS. When the user picks a table they also have to pick the initials in another combo box and then displays a crosstab report. <br>
I have this procedure on my on click preview report.<br>
<br>
Dim stDocName As String<br>
Dim strlinkcriteria As String<br>
<br>
stDocName = [Forms]![frmlogdate]![logfile] // combo box for tables<br>
If IsNull(stDocName) Then // check if user selects a tb<br>
MsgBox "Please select the Logfile from the List."<br>
Else<br>
Me.Visible = False<br>
strlinkcriteria = INITIALS = [Forms]![frmlogdate]! [iNITIALS]<br>
DoCmd.OpenReport "CrossTab", acPreview, , strlinkcriteria<br>
End If<br>
<br>
<br>
My problem is that I get an error msg saying that it is an invalid use of null and also the report does now show anything. I am comparing the initials from the table they pick to the initials they want to see for the report which is in another combo box on the same form. What is wrong with this code. Please help. <p>Villica<br><a href=mailto:villica67@hotmail.com>villica67@hotmail.com</a><br><a href= > </a><br>
I have this procedure on my on click preview report.<br>
<br>
Dim stDocName As String<br>
Dim strlinkcriteria As String<br>
<br>
stDocName = [Forms]![frmlogdate]![logfile] // combo box for tables<br>
If IsNull(stDocName) Then // check if user selects a tb<br>
MsgBox "Please select the Logfile from the List."<br>
Else<br>
Me.Visible = False<br>
strlinkcriteria = INITIALS = [Forms]![frmlogdate]! [iNITIALS]<br>
DoCmd.OpenReport "CrossTab", acPreview, , strlinkcriteria<br>
End If<br>
<br>
<br>
My problem is that I get an error msg saying that it is an invalid use of null and also the report does now show anything. I am comparing the initials from the table they pick to the initials they want to see for the report which is in another combo box on the same form. What is wrong with this code. Please help. <p>Villica<br><a href=mailto:villica67@hotmail.com>villica67@hotmail.com</a><br><a href= > </a><br>