multiple sql inserts in Access?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Keita
    New Member
    • Jun 2007
    • 4

    #1

    multiple sql inserts in Access?

    Hi everyone,
    I have a txt file where my sql insertions are (Insert into XXX values XXX; Insert into YYY values YYY and so on), but when inserting them in SQL view from Access, it sends an error saying that only one query can be made (characters found after the sql statement)...is there any way to make multiple sql inserts without making any macro just as if copy-pasting multiple queries as in SQL Server? any comment will be appreciated
  • MMcCarthy
    Recognized Expert MVP
    • Aug 2006
    • 14387

    #2
    Originally posted by Keita
    Hi everyone,
    I have a txt file where my sql insertions are (Insert into XXX values XXX; Insert into YYY values YYY and so on), but when inserting them in SQL view from Access, it sends an error saying that only one query can be made (characters found after the sql statement)...is there any way to make multiple sql inserts without making any macro just as if copy-pasting multiple queries as in SQL Server? any comment will be appreciated
    You can do this in VBA but not in the query window.

    Comment

    Working...