R
RonM
I have a command button that runs fine as long as there is
not an apostrophie in the field value for [Location_Name].
i.e. if [Location_Name]="Joe's Grill"
I'm sure this is very simple to fix, I'm just a rookie...
Here is the code:
Private Sub Assignments_Btn_Click()
On Error GoTo Err_Assignments_Btn_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Assignments_By_Co"
stLinkCriteria = "[Location_Name]=" & "'" & Me!
[Location_Name] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Thanks,
RM
not an apostrophie in the field value for [Location_Name].
i.e. if [Location_Name]="Joe's Grill"
I'm sure this is very simple to fix, I'm just a rookie...
Here is the code:
Private Sub Assignments_Btn_Click()
On Error GoTo Err_Assignments_Btn_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Assignments_By_Co"
stLinkCriteria = "[Location_Name]=" & "'" & Me!
[Location_Name] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Thanks,
RM