|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: |
Dim DB As Database, REC As Recordset, CRI As Recordset
Dim RecNum As Long
Dim CriNum As Long
Dim TotalNum As Long
Dim x As String
Dim objRE As Object
Dim objMC As Object
Dim objMatch As Object
Dim i As Integer
Dim strSql As String
Dim strText As String
Dim j As Integer
Dim y As Variant
Dim lb, ub As Integer
Set DB = CurrentDb
Set REC = DB.OpenRecordset("SELECT fldWwg, fldDescription FROM tblData")
Set CRI = DB.OpenRecordset("SELECT txtFind, txtReplace FROM tblSkuFindReplace")
Set objRE = CreateObject("VBScript.RegExp")
intFld = 1
If REC.RecordCount = 0 Then
Exit Sub
End If
REC.MoveLast
REC.MoveFirst
CRI.MoveLast
CRI.MoveFirst
RecNum = (REC.RecordCount)
CriNum = (CRI.RecordCount)
Do Until REC.EOF
x = " " & REC.Fields("fldDescription") & " "
For j = 1 To Len(x) - 5
If Mid$(x, j, 1) = " " Then
y = Mid$(x, j + 1, 5)
y = PurgeSpecialChars(Nz(y, " "), " !@=|~`^#$%&*().',?\/+-_<>:;")
If IsNumeric(y) = False Then
CRI.FindFirst "txtFind = '" & y & "' "
If CRI.NoMatch = False Then
y = " " & y & " "
If InStr(x, " " & y & " ") > 0 Then 'MsgBox "found" <---- problem here !!!
REC.Edit
REC.Fields("fldWwg").Value = Trim(y)
REC.Update
Exit For
End If
End If
End If
End If
Next j
REC.MoveNext
Loop
|
Advertisement
| Hall of Fame |