My last experience posting a question on here was not great but it did finally yield the answer.
I am moving an Access 2000 database onto SQL Server and have found what seems like exactly what I need to do on page 595 of the following book
Microsoft Access Developers Guide to SQL (Chipman/Barrow)
I have spent 2 days on this and am ready to burst. I cannot get the Code to run . This is what my code looks like in the Open Report button.
Sub Cntry()
If IsNull(Me.cboSelectC) Then
DoCmd.OpenReport "ReviewsbyCountry", View:=acViewPreview
Else
DoCmd.OpenReport "ReviewsbyCountry", View:=acViewPreview, WhereCondition:="ReviewsbyCountry=" & Me!cboSelectC
End If
Me.cboSelectC = Null
End Sub
My mdb Access file is linked to the SQL server but when I try to work with the code on the button, it freezes, tells me the network connection is gone, won't let me work on the button anymore.
Any ideas? Step by step is my speed
I am moving an Access 2000 database onto SQL Server and have found what seems like exactly what I need to do on page 595 of the following book
Microsoft Access Developers Guide to SQL (Chipman/Barrow)
I have spent 2 days on this and am ready to burst. I cannot get the Code to run . This is what my code looks like in the Open Report button.
Sub Cntry()
If IsNull(Me.cboSelectC) Then
DoCmd.OpenReport "ReviewsbyCountry", View:=acViewPreview
Else
DoCmd.OpenReport "ReviewsbyCountry", View:=acViewPreview, WhereCondition:="ReviewsbyCountry=" & Me!cboSelectC
End If
Me.cboSelectC = Null
End Sub
My mdb Access file is linked to the SQL server but when I try to work with the code on the button, it freezes, tells me the network connection is gone, won't let me work on the button anymore.
Any ideas? Step by step is my speed