ms access - trying to find record that includes # in vba -
ms access - trying to find record that includes # in vba -
i have access vba application. when seek search invoice using
docmd.findrecord strordnum, acentire, false, acdown, false, accurrent, true it works when strordnum 123 or 1111. records strordnum has "#" in them not work. illustration 1 of records have 11234#223, not find it. ideas on how can deal these cases. thanks
as @overmind mentioned, think it's wildcard issue. worked me. replace:
docmd.findrecord strordnum, acentire, false, acdown, false, accurrent, true with:
docmd.findrecord replace(strordnum, "#", "[#]"), acentire, false, acdown, false, accurrent, true this forcefulness search literal.
vba ms-access
Comments
Post a Comment