MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Public Function ApplyAlias(Strin As String) As String Dim Db As DAO.Database Set Db = CurrentDb() Dim rstTclient As DAO.Recordset Dim StrOutput As String Dim Index As Integer Dim WordArray() As String WordArray() = Split(Trim(Strin), " ") Set rstTclient = Db.OpenRecordset("TblModelAlias") For Index = LBound(WordArray) To UBound(WordArray) With rstTclient .MoveFirst .FindFirst "[sDesc] = '" & WordArray(Index) & "'" If .NoMatch Then 'do nothing Else WordArray(Index) = .Fields("sClientDescGroup").Value End If End With Next Index = 0 For Index = LBound(WordArray) To UBound(WordArray) If Index = 0 Then StrOutput = WordArray(Index) Else StrOutput = StrOutput & " " & WordArray(Index) End If Next ApplyAlias = StrOutput End Function
|Getting Run-time error 91 - Object Variable or With Block Variable not set||20||33|
|Solved: How can I prevent deletions from a form in datasheet view?||5||25|
|Access 2013 DoCmd.TransferSpreadsheet Not Working in Win 10||8||25|
|Create macro from runcode||30||22|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
10 Experts available now in Live!