Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 21st, 2006, 12:35 AM
sadiewms
Guest
 
Posts: n/a
Default complex insert and vba

I'm trying to get data from one table into another. The data in the
first table - Table A - is something like this:

personfn, personln; personfn, personln; personfn, personln

I would like to split the field and then input a new record for each
string into Table B

I'm guessing that I should do this all in VBA (because I can't find
another way to do it)

So I need to:
loop through each field in Table A
split column A on semicolon using split()
loop through array and insert strings into the field in Table B

I'm stuck trying to figure out how to get the data from a select
statement using VBA. I know I can use RunSQL for the insert. I'm also
unsure of how to do loops

My knowledge of VBA is very very limited. Can anyone give me a start?

Thanks!

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles