Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

When a drop down changes parsing first piece into another field

Status
Not open for further replies.

jock95

Programmer
Feb 19, 2005
7
0
0
US
I have a field on a form that when I change the selection I want the first part of that field to be parsed and changed in another field.

Example. I have a list box with the following.

Books - Doc 7 6180

In the other field, I need this to happen in the on change() cmd.
Left([Cell_Loc],InStr([Cell_Loc],'-')-1)

Hope this makes sense.
 
Something like this: (?)
Code:
Private Sub List2_Click()
Me!Text0 = Left(Me!List2.Column(0), InStr(Me!List2.Column(0), "-")-1)
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top