If I have a table where one field contains data such as "Dog,Chicken,Bear" or "Fish,Cow,Pig" How can I fill a listbox from the table where only the first part of the data up to the comma gets added to my list?
Many thanks
Have a look at the Left, Right, Mid and InStr Functions.
Something lik
Left(field, Instr(0, field, ",") - 1)
should get you started
=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)
Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.