J
Janis
I have a cell of product numbers some delimited by carriage returns but it
also has stray commas. I need to get rid of where in the access macro it is
putting the comma in the product number cells. I want the program/product
numbers to be delimited by just a carriage return. Here is a snippet of the
output commands.
The rsData is the dataset it is sorted by division name . The sProgramList
variable is a list of products sorted in rows by divisions. I think it loops
and inserts the program numbers all together for one style. The problem is
those pesky commas I would like to get rid of here. I think they might have
tried the trim command to get rid of it and it doesn't work? Otherwise I
don't know what the trim command does because there are no floating points
only integers. I don't know what the Nz is. I've looked through the code
and it seems to be used when the recordSetData is called. The lrow is a
placeholder. Somehow when it is looping through the rows adding program
numbers to the cell for that division it adds commas:
sDivName = rsData!DivisionName
lOrigRow = lrow
.Cells(lrow, 1).Value = LCase(rsData!EventName)
sProgramList = Trim(Replace(Nz(rsData!Programs, ""), ";", ""))
thanks,
also has stray commas. I need to get rid of where in the access macro it is
putting the comma in the product number cells. I want the program/product
numbers to be delimited by just a carriage return. Here is a snippet of the
output commands.
The rsData is the dataset it is sorted by division name . The sProgramList
variable is a list of products sorted in rows by divisions. I think it loops
and inserts the program numbers all together for one style. The problem is
those pesky commas I would like to get rid of here. I think they might have
tried the trim command to get rid of it and it doesn't work? Otherwise I
don't know what the trim command does because there are no floating points
only integers. I don't know what the Nz is. I've looked through the code
and it seems to be used when the recordSetData is called. The lrow is a
placeholder. Somehow when it is looping through the rows adding program
numbers to the cell for that division it adds commas:
sDivName = rsData!DivisionName
lOrigRow = lrow
.Cells(lrow, 1).Value = LCase(rsData!EventName)
sProgramList = Trim(Replace(Nz(rsData!Programs, ""), ";", ""))
thanks,