S
S Jackson
I have this code in my db designed in Access 2000 that works great:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmMaster"
stLinkCriteria = "[DHSAttny]=" & "'" & Me![Combo2] & "'"
If Me.Combo2.Value > 0 Then
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.Close acForm, "fdlgAttnyPickOpen"
Else
MsgBox "Please select an attorney and try again."
End If
But, when I convert the db to Access 97, the code will not run. If I leave
the combo box blank, it will display the message box, however, when I make a
selection, the code just sits there and does nothing. On other forms in the
97 db with the same code, I get this error: "Type mismatch." Is it the
stLinkCriteria ?
I have run out of ideas on how to make this work. Any help is very, very
much appreciated as I am working on a deadline of 5:00 p.m.
Thanks
S. Jackson
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmMaster"
stLinkCriteria = "[DHSAttny]=" & "'" & Me![Combo2] & "'"
If Me.Combo2.Value > 0 Then
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.Close acForm, "fdlgAttnyPickOpen"
Else
MsgBox "Please select an attorney and try again."
End If
But, when I convert the db to Access 97, the code will not run. If I leave
the combo box blank, it will display the message box, however, when I make a
selection, the code just sits there and does nothing. On other forms in the
97 db with the same code, I get this error: "Type mismatch." Is it the
stLinkCriteria ?
I have run out of ideas on how to make this work. Any help is very, very
much appreciated as I am working on a deadline of 5:00 p.m.
Thanks
S. Jackson