Casper2012
Registered User.
- Local time
- Today, 10:50
- Joined
- Aug 10, 2011
- Messages
- 23
I have a combo/lookup box in my form that allows me to search by phone number and populates fields for me. My question is, how can I show my phone number to list in accending order?
******************************
Private Sub cboNames_AfterUpdate()
If Len(Me![cboNames].Column(1)) > 0 Then Me.txtPhone = Me![cboNames].Column(1) Else Me.txtPhone = " "
If Len(Me![cboNames].Column(3)) > 0 Then Me.txtLastName = Me![cboNames].Column(3) Else Me.txtLastName = " "
If Len(Me![cboNames].Column(2)) > 0 Then Me.txtFirstName = Me![cboNames].Column(2) Else Me.txtFirstName = " "
If Len(Me![cboNames].Column(4)) > 0 Then Me.txtProductFrom = Me![cboNames].Column(4) Else Me.txtProductFrom = " "
End Sub
*******************************
thanks!
******************************
Private Sub cboNames_AfterUpdate()
If Len(Me![cboNames].Column(1)) > 0 Then Me.txtPhone = Me![cboNames].Column(1) Else Me.txtPhone = " "
If Len(Me![cboNames].Column(3)) > 0 Then Me.txtLastName = Me![cboNames].Column(3) Else Me.txtLastName = " "
If Len(Me![cboNames].Column(2)) > 0 Then Me.txtFirstName = Me![cboNames].Column(2) Else Me.txtFirstName = " "
If Len(Me![cboNames].Column(4)) > 0 Then Me.txtProductFrom = Me![cboNames].Column(4) Else Me.txtProductFrom = " "
End Sub
*******************************
thanks!