Joshua61679
Technical User
I'm using this code:
Private Sub Command14_Click()
Dim strCased As String
Dim strSheet As String
Dim strField As String
Dim strCounty As String
Dim strState As String
Dim strDirections As String
Dim strLocationComments As String
strSheet = Me!Sheet
strField = Me!Field
strCounty = Me!County
strState = Me!State
strDirections = Me!Directions
strLocationComments = Me!LocationComments
strCased = " Sheet = '" & strSheet & "'"
Call DoCmd.OpenForm("Cased", , , strCased, acFormEdit)
Call DoCmd.Close(, "Directions"
Me!Field = strField
Me!County = strCounty
Me!State = strState
Me!Directions = strDirections
Me!LocationComments = strLocationComments
End Sub
But I'm getting a 2501 Error on the command to open "Cased". Did I do something wrong?
Private Sub Command14_Click()
Dim strCased As String
Dim strSheet As String
Dim strField As String
Dim strCounty As String
Dim strState As String
Dim strDirections As String
Dim strLocationComments As String
strSheet = Me!Sheet
strField = Me!Field
strCounty = Me!County
strState = Me!State
strDirections = Me!Directions
strLocationComments = Me!LocationComments
strCased = " Sheet = '" & strSheet & "'"
Call DoCmd.OpenForm("Cased", , , strCased, acFormEdit)
Call DoCmd.Close(, "Directions"
Me!Field = strField
Me!County = strCounty
Me!State = strState
Me!Directions = strDirections
Me!LocationComments = strLocationComments
End Sub
But I'm getting a 2501 Error on the command to open "Cased". Did I do something wrong?