A
Afrosheen via AccessMonster.com
Thanks for reading this.
What I'm trying to do is to create a query though code that will display last
names of the text box.
For example: Person's last name is James. There may be 5 names with the last
name of James.
strWhere = "Select [lname]" _
& "From tbl_roster " _
& "Where lname =' " & txtSearch & ' '"
Every time I do a msgbox it comes up with the wrong name. I know I've seen
the correct way to do it here, but do you think I can find it? NOT.
The txtSearch is a textbox to enter the person's last name.
Once I can get this working then I think all I have to do to display the next
name/James would be to press my Next command button.
Your help is greatly appreciated.
What I'm trying to do is to create a query though code that will display last
names of the text box.
For example: Person's last name is James. There may be 5 names with the last
name of James.
strWhere = "Select [lname]" _
& "From tbl_roster " _
& "Where lname =' " & txtSearch & ' '"
Every time I do a msgbox it comes up with the wrong name. I know I've seen
the correct way to do it here, but do you think I can find it? NOT.
The txtSearch is a textbox to enter the person's last name.
Once I can get this working then I think all I have to do to display the next
name/James would be to press my Next command button.
Your help is greatly appreciated.