A family of Microsoft relational database management systems designed for ease of use.
Hi Maxine Nietz
Thank you for reaching out to the Microsoft Q&A Forum and for sharing the details of your issue.
Based on your description, I tried to reproduce the scenario on my side, and it seems to work normally. You may try using an approach like the following:
Private Sub POS_AfterUpdate()
Dim rs As DAO.Recordset
Dim strSQL As String
strSQL = "SELECT PONoQ.PID, PONoQ.PONo FROM PONoQ " & _
"WHERE PONoQ.PONo Like '*" & Me.POS & "*';"
Set rs = CurrentDb.OpenRecordset(strSQL)
MsgBox rs.RecordCount
rs.Close
Set rs = Nothing
End Sub
Could you please try this on your side and see if it works?
If I have misunderstood your scenario, please feel free to let me know and I’ll be happy to take another look.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.