G
Guest
I am trying to add a column that contains a comma to a 'value list' list box.
I have a patient name (Last, first MI) column and a patient ID column (among
others). I have my Row Source Type set to Value List and the number of
columns correct, column widths etc. all correct, but when I try and do this:
lstbox.AddItem "TreatmentId;LastName, FirstName MI;PatientId"
The help documentation shows that the delimeter should be the ; not comma's,
however instead of getting the name all in one column, it is being placed in
two separate columns (because of the comma... it is being seen by Access as a
delimeter, separating columns). I have tried to escape the comma... to get it
to be seen as a literal. Ive tried using chr(44) in place of it... all to no
avail...
is there anyway to use a comma in a 'value list' list box without Access
splitting the string on the comma?
btw: Im using 2007 if it makes any dif...
I have a patient name (Last, first MI) column and a patient ID column (among
others). I have my Row Source Type set to Value List and the number of
columns correct, column widths etc. all correct, but when I try and do this:
lstbox.AddItem "TreatmentId;LastName, FirstName MI;PatientId"
The help documentation shows that the delimeter should be the ; not comma's,
however instead of getting the name all in one column, it is being placed in
two separate columns (because of the comma... it is being seen by Access as a
delimeter, separating columns). I have tried to escape the comma... to get it
to be seen as a literal. Ive tried using chr(44) in place of it... all to no
avail...
is there anyway to use a comma in a 'value list' list box without Access
splitting the string on the comma?
btw: Im using 2007 if it makes any dif...