【发布时间】:2018-03-23 18:59:54
【问题描述】:
如果右边的第 8 个字符等于特定值,是否有一个函数会返回某个值?
如果字符串末尾的 8 位有“P”,我希望它返回一个特定的文本字符串。我认为 Right() 函数会起作用,但它显然不只是寻找一个特定的值。
这是我暂时无法正常工作的:
ElseIf Right(rst![DocNo / ERNo / PONo], 8) = "P" Then
sAdditionalText = "<Font face='Calibri'>" _
& "Please work with Purchasing to make the necessary corrections. <BR><BR>" _
& "<b>Please be advised that the funds from this check will remain as a charge against the FOAPALs utilized in the transaction until this matter is resolved.</b> <br><br>"
【问题讨论】:
标签: string function ms-access vba