The computer room fee system Drag and finish, I will make a small summary of the combination of query (according to the statistics 4 forms need to be implemented by combining query statements).
Say the operating room fee system v1.0_ Hu Yang (Modify version 8.13) program, very helpless said I really will not use
field name, operator, query content, the combination of relations, in the end what is the connection, how the operator is equal to, greater than, less than, not equal to, or and and what ... Hurrying feet is very complex, I can not use, where to talk about the implementation of the function?
Defeat oneself is not others, often is oneself of
The logical relationship in the combinatorial query clear ... In fact, that's what it is ———— right ...
One of the following is my understanding of the combination of query module, example: On the computer student information inquiry
1, the first layer to query
Determines whether the field name is empty, determines whether the operator is empty, and determines whether the lookup content is empty
2, the second layer to query
when the combo relationship box is not empty, the next level is queried according to the composition relationship
3, the third level to query
The first two-layer relationship is clear and can be implemented correctly, the third layer is so easy LA (code does not show)
Supplemental Note: String conversion functions are customized in the class module.
Public Function changestring (Strfields As String) as String
If Strfields = "card number" Then
Changestring= "Cardno"
Exit Function
End If
............
————— This article out of personal opinion, to be perfected, if there is a coincidence is purely coincidental —————