N
Nelson
what's wrong with the following string??
sqlstring = "SELECT staff.staffid , NewJoinMPF.payid" & _
"FROM staff LEFT JOIN (paydetail LEFT JOIN NewJoinMPF ON
paydetail.payid = NewJoinMPF.payid) ON staff.staffid = paydetail.staffid" &
_
"WHERE staff.staffid='" & Me.staffid & "' AND (Not
NewJoinMPF.payid Is Null)"
sqlstring = "SELECT staff.staffid , NewJoinMPF.payid" & _
"FROM staff LEFT JOIN (paydetail LEFT JOIN NewJoinMPF ON
paydetail.payid = NewJoinMPF.payid) ON staff.staffid = paydetail.staffid" &
_
"WHERE staff.staffid='" & Me.staffid & "' AND (Not
NewJoinMPF.payid Is Null)"