JBJuice2 - Access multiselect fields

12 years 2 months ago #190445 by drchamp52
JBJuice2 - Access multiselect fields was created by drchamp52
I need to import/export from CBuilder user fields to/from a local Access database. I have the following problem I can't solve.

Using CBJuice2 Community Builder multiselect fields are .csv exported as a single field with |*| as a separator between selections in CBJuice2. When Access exports the .csv it creates a separate row for each of the defined multiselect selections with out |*|.

How does one transpose/convert between the two csv formats?

Thanks.

Please Log in to join the conversation.

12 years 2 months ago #191374 by ronsta
Replied by ronsta on topic Re: JBJuice2 - Access multiselect fields
I export data from CB into filemaker.

After I import the data into filemaker, I use filemaker to do a find and replace of |*| with a line break.

That fixes it up in filemaker but not sure if Access can do the same thing.

You could also just try a find and replace directly in your CSV file before you import it.

Please Log in to join the conversation.

12 years 2 months ago #191535 by drchamp52
Replied by drchamp52 on topic Re: JBJuice2 - Access multiselect fields
Thanks for the reply. I ended up working with someone who is skilled in php. He is creating a piece of stand alone code which will take the text based concatenated multiselect fields from mysql/CB/CBJuice and create the multiple unique individual records which is needed to import into Access. And, the php to go in the other direction from an Access save as csv file with individual records to a text concatenated |*| field for multiselect form items.

Please Log in to join the conversation.

12 years 2 months ago #191537 by jciconsult
Replied by jciconsult on topic Re: JBJuice2 - Access multiselect fields
I would strongly advise you to learn how to work with unique records etc in Access if you are going to work with such powerful tools. it is actually very very easy. It is also easy in access to write a vba macro to create the kind of compound field that Community Builder requires. In the economics site that I developed CBJUICE for, we use access to maintain things as well. In the church site where we have complex multiselect fields, I use an EXCEL system to manage it but there are only about 1000 members.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.252 seconds

Facebook Twitter LinkedIn