I
imelda1ab
I'm still learning and I'm still struggling. How do I write a
stLinkCriteria statement to include "this AND that"? By the same
token, what if I wanted to use instead a "this OR that" statement?
Same syntax? Below is what I would use if it worked the same way it
works logically in my head )
Thanks!!
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmSupportStaff"
stLinkCriteria = "[To] = 'Doe, Jane'" AND "[City]= 'Chicago'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
stLinkCriteria statement to include "this AND that"? By the same
token, what if I wanted to use instead a "this OR that" statement?
Same syntax? Below is what I would use if it worked the same way it
works logically in my head )
Thanks!!
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmSupportStaff"
stLinkCriteria = "[To] = 'Doe, Jane'" AND "[City]= 'Chicago'"
DoCmd.OpenForm stDocName, , , stLinkCriteria