O
oleg7
Делаю печать по указанным критериям. При :
Ищет нормально. При:
Ищет нормально.
а при:
выдает ошибку "relational operators are not supported in text fields "
в
из-за чего это может быть.
Код:
If (Doc.Data1(0)<>"") And (Doc.Data2(0)<>"") And (Doc.Problema(0)="") Then
Query = {[Date11]>=} & Doc.Data1( 0 ) & { AND } & {[Date12]<=} & Doc.Data2( 0 )
End If
Код:
If (Doc.Data1(0)="") And (Doc.Data2(0)="") And (Doc.Problema(0)<>"") Then
Query = {[Problem]=} & Doc.Problema(0)
End If
Ищет нормально.
а при:
Код:
If (Doc.Data1(0)<>"") And (Doc.Data2(0)<>"") And (Doc.Problema(0)<>"") Then
Query = {[Data11]>=} & Doc.Data1( 0 ) & { AND } & {[Date12]<=} & DialogDoc.Data2( 0 ) & { AND } & {[Problem]=} & Doc.Problema(0)
End If
выдает ошибку "relational operators are not supported in text fields "
в
Код:
If CurrentDb.IsFTIndexed Then
Set ndc = CurrentDb.FTSearch(Query, 0 )
If ndc.Count=0 Then