So far, if I only use the variable as the criteria, the statement performs as intended. If I try to include the asterisk, I get nothing. and darned if I can figure out the syntax.
CODE
"SELECT tblMessage.MsgPK, tblMessage.Date_Stamp, tblMessage.Msg " & _
"FROM tblMessage " & _
"Where (((tblMessage.Msg) =[color="red"] '" & strSitePrefix & "'[/color]))" & _
"ORDER BY tblMessage.Date_Stamp DESC;"
"FROM tblMessage " & _
"Where (((tblMessage.Msg) =[color="red"] '" & strSitePrefix & "'[/color]))" & _
"ORDER BY tblMessage.Date_Stamp DESC;"
strSitePrefix is a 3 character text string (example ABC), and I would like the criteria to ultimately be "*ABC*"
Thanks,
Matt