G
Guest
Hello All,
I am trying to concatinate a list of names from a query.
This is Access 2003
Query Name: NamesRelated
Field inQuery: Names
I have the following code and I get no results
Dim DBS as Database
Dim RS as DAO.Recordset
dim x as string
x=""
Set DBS = CurrentDb
Set RS=DBS.OpenRecordset("NamesRelated")
Do Until RS.EOF
x=x & RS!names & ","
RS.MoveNext
loop
To test, I use a message box to display the text from x.
I get nothing every time. The Query runs just fine.
What have I missed here?
Thanks
Brian
I am trying to concatinate a list of names from a query.
This is Access 2003
Query Name: NamesRelated
Field inQuery: Names
I have the following code and I get no results
Dim DBS as Database
Dim RS as DAO.Recordset
dim x as string
x=""
Set DBS = CurrentDb
Set RS=DBS.OpenRecordset("NamesRelated")
Do Until RS.EOF
x=x & RS!names & ","
RS.MoveNext
loop
To test, I use a message box to display the text from x.
I get nothing every time. The Query runs just fine.
What have I missed here?
Thanks
Brian