Code: Select all
... ON TAB.DENOM LIKE * TAB1.NOMINATIVO *
is this correct?
note:
i need to use in Access Ide
Code: Select all
... ON TAB.DENOM LIKE * TAB1.NOMINATIVO *
Code: Select all
... ON TAB.DENOM LIKE '*' & TAB1.NOMINATIVO & '*'
OK TKS!HansV wrote:Try
Code: Select all
... ON TAB.DENOM LIKE '*' & TAB1.NOMINATIVO & '*'
HansV wrote:1) Wildcards * and/or ? work only with LIKE, not with =.
2) Yes.
Instr in field help me?HansV wrote:You can't match "mario rossi" with "rossi mario" using = or Like. You'll have to 'clean' the data so that they are all in a consistent format, either "firstname lastname", or "lastname firstname", but not a mixture of both. Even better would be to store first name in one field and last name in another field.
Peraph firts steep...HansV wrote:There's no easy solution for your problem.
HansV wrote:How many records do you need to process?
Code: Select all
Dim ShowInfo() As String
TEST = RS1.Fields(0).Value
ShowInfo = Split(TEST, " ")
Select Case UBound(ShowInfo)
Case 1 ' 2 parts
TEST = ShowInfo(1) & " " & ShowInfo(0)
Case 2 ' 3 parts
TEST = ShowInfo(2) & " " & ShowInfo(1) & " " & ShowInfo(0)
Case Else ' 1 part or more than 3
' Leave alone
End Select
HansV wrote:OK, that's manageable. Try this:
Code: Select all
Dim ShowInfo() As String TEST = RS1.Fields(0).Value ShowInfo = Split(TEST, " ") Select Case UBound(ShowInfo) Case 1 ' 2 parts TEST = ShowInfo(1) & " " & ShowInfo(0) Case 2 ' 3 parts TEST = ShowInfo(2) & " " & ShowInfo(1) & " " & ShowInfo(0) Case Else ' 1 part or more than 3 ' Leave alone End Select