I'm trying to filter out telephone calls logged by an isdn line to my customer form, so I can tell how many calls turned into orders.
The code works filtering one 1 field [Phonenumber1], but if I try to filter on the second field aswell [phonenumber2], the results show records including isnull.
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Orders by Customer"
stLinkCriteria = "[PhoneNumber1] or [PhoneNumber2]=" & "'" & Me![telno] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Please help,
Simon
The code works filtering one 1 field [Phonenumber1], but if I try to filter on the second field aswell [phonenumber2], the results show records including isnull.
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Orders by Customer"
stLinkCriteria = "[PhoneNumber1] or [PhoneNumber2]=" & "'" & Me![telno] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Please help,
Simon