Okay this might be a complex question (though easy to answer) depends on how well I explain it hehe:
Okay, I have a combination drop down menu that displays different titles of books. Each book will have it's own table that is named "tblBook" 'Book' being the first word of the title. So if the book's title was, "Rabbits Eat Lettuce" the name of it's table would be "tblRabbits". For the drop down menu I want it to change the source when you select it. Okay, not a problem, a helpful Tek-Tip guy helped me earlier today with the code, it looks like this:
Docmd.Echo False Me.Recordsource = Me!ComboName Docmd.Echo True
Okay so naturally if I do this: Me.Recordsource = "tbl" & Me!ComboName, it will give me the recordsource as "tblBook Title". But to keep naming standards in place, I just want the first word, so the source will be tblBook. I'm really new at VB and these basic things of string manipulation evades me.
Okay, I have a combination drop down menu that displays different titles of books. Each book will have it's own table that is named "tblBook" 'Book' being the first word of the title. So if the book's title was, "Rabbits Eat Lettuce" the name of it's table would be "tblRabbits". For the drop down menu I want it to change the source when you select it. Okay, not a problem, a helpful Tek-Tip guy helped me earlier today with the code, it looks like this:
Docmd.Echo False Me.Recordsource = Me!ComboName Docmd.Echo True
Okay so naturally if I do this: Me.Recordsource = "tbl" & Me!ComboName, it will give me the recordsource as "tblBook Title". But to keep naming standards in place, I just want the first word, so the source will be tblBook. I'm really new at VB and these basic things of string manipulation evades me.