Sandra Smith
asked on
include comma in name in results of VBA statement query
I have inherited a query that is created in VBA. It is a simply select statement, "SELECT RSM FROM tblRSM". Problem is that the names have a comma, for example, Smith, Sandra. When the code runs the query, it recognizes the value in field(0), BUT it then assumes the value after the comma is field(1). How do I get it to recognize the entire name value rather than it automatically assuming the value after the comma is another field?
Sandra
Sandra
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Good choice. That is a far better method. In other programming environments, the equivalent to list/combos isn't bound so you needed code to fill the RowSource. Luckily for us, Access combos and listboxes are bound to the RowSource so no code is needed. So, programmers who learned VB first for example, tend to write a lot more code than they need to.
ASKER
Sandra