RE: How do I use the INSERT INTO Statement in VBA?



Can you please post the all insert statement and the error you getting.

The syntax should be
docmd.runsql "insert into target (Field1,Field2,Field3) values
(Forms![FormName]![Field1Name],Forms![FormName]![Field2Name],Forms![FormName]![Field3Name])"

"Unique Name" wrote:

> I am trying to enter data into a table from a form using the INSERT INTO
> Statement in VBA forAccess 2003. I type it as shown in the assistance(below)
> but keep getting errors. Is there something I am missing?
>
> INSERT INTO target [(field1[, field2[, ...]])]
> VALUES (value1[, value2[, ...])
>
> Thanks
.



Relevant Pages

  • Re: Stop Posting About Cigars
    ... Someone keeps missing his target. ... CigarBraon ... Prev by Date: ...
    (alt.smokers.cigars)
  • Re: The Circumnavigators: Free E-Book
    ... Point at the chapter, right mouseclick, save target as... ... >I'm missing something in the thread, how do I down load the book? ... Prev by Date: ...
    (rec.boats.cruising)
  • Re: Splitting Fishtales PF
    ... I asked for that drop target too. ... played or seen at auction is missing that piece. ... Prev by Date: ...
    (rec.games.pinball)
  • Re: email from subform
    ... "Michel Walsh" wrote: ... > Have you try the syntax: ... >> convention I am missing? ... Prev by Date: ...
    (microsoft.public.access.forms)
  • Re: Still think Bush isnt linking Iraq with 9/11?
    ... >>>We were already a target. ... >> You're missing a word there. ... - C. Beauchamp ... Prev by Date: ...
    (rec.sport.football.college)