In my application, I use (Right$(nod.Key, 5)). The return I'm looking for is "PMH50" which I get with no problem. However, when there are returns like "PMH100" or "PMH1000", how is the function worded to return this?
This add the closing single quote for the text value tested for PMInterval in the SQL code:
DoCmd.RunSQL "DELETE * FROM PMInterval WHERE PMName=[!]'[/!]" & Mid(nod.Key, InStrRev(nod.Key, "PMH")) & "[!]'[/!]"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.