
14-03-15, 07:35
|
| Όνομα: Χάρης Έκδοση λογισμικού Office: Ms-Office 2007 Γλώσσα λογισμικού Office: Ελληνική | | Εγγραφή: 22-02-2015
Μηνύματα: 20
| |
Ψάχνοντας βρήκα μια καλή λύση...
Αν το σύνθετο πλαίσιο το το πούμε phone
έχουμε... Κώδικας: Private Sub phone_Change()
Dim strRowSource As String
strRowSource = "SELECT person_id, phone, l_name, f_name, address FROM ref_person"
If Len(Me!phone.Text) = 5 Then
strRowSource = strRowSource & " WHERE phone Like '"
strRowSource = strRowSource & Me!phone.Text
strRowSource = strRowSource & "*'"
Me!phone.RowSource = strRowSource
Me!phone.Dropdown
End If
End Sub
|