Yup, that's about it.
The "somehow execute sqlstring" would be CurrentDb.Execute sqlstring,
dbFailOnError (assuming you've got a reference set to DAO)
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"Zark3" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Ouch! Sounds like an nested jumble of if and while-statements waiting
> to happen?
> something like this pseudocode?
> ---
> while not found dollarsign
> if(first part of inputline matches field name)
> fieldstring += fieldname
> valuestring += remainder
> else if(first char of inputline == ";")
> valuestring += inputline
> sqlstring = "insert into table1 (" + fieldstring + ") values (" +
> valuestring + ")"
> [somehow execute sqlstring (?)]
> loop
> ---
>
> Am I on the right path here do you reckon?
>
> Thanks for the tip,
>
> Chris
>