Question : How to do an insert into a multi-value column

A person in my office came to me with an Access 2007 question.  I do not have the ability to change the specs of her Database.

Easy specs:
Tables: TableA, TableB
TableA: has id, name, myMVField
TableB: has id, MVName

TableB is the look up table for the field myMVField in TableA


What would a sql script look like to insert into this table?

I am also trying to populate a flat Excel document into this Database.
Its structure is as follows
Columns: id, name, myMVField
This is the same as TableA in the database.
In the Excel file the myMVField column has a semicolon delimited list

I plan on writing a VB.Net app to execute these inserts on the access db.  If you guys know a superior and easier way to import this let me know that too.  I am experienced at importing into Access.....just not experienced in dealing with the new multi value columns

Background:
I rarely use Access unless its to dump data to an easy format.  I am a software developer however.

Answer : How to do an insert into a multi-value column

I figured it out:
First you have to insert a row without a MV value
insert into TableA (name) values('aName');
then these statements will insert the multivalue values
INSERT INTO TableA (mymvfield.[Value]) values( 1) where id = 1;
INSERT INTO TableA (mymvfield.[Value]) values( 3) where id = 1;


There is probably a way to streamline that whole deal...but at least this is working now.

Random Solutions  
 
programming4us programming4us