Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 18th, 2003, 05:31 PM
Authorized User
 
Join Date: Jun 2003
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rylemer Send a message via MSN to rylemer Send a message via Yahoo to rylemer
Default Error on make table Query

I'm in the process of create all my query into table.
Since I have lots of query I 've to put in into SQL statement in VBA
but I got an error Invalid arguments

these is my code

Dim db As Database
Dim rs, sql
Set db = CurrentDb()
sql = "SELECT [ID], [Name], [Address], [Phone] INTO newCustomer " & _
      "FROM Customer;"
Set rs = db.OpenRecordset(sql, dbOpenDynaset)

Thanks
Elmer
 
Old June 19th, 2003, 01:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There's another option you could do - you could just use a docmd - eg:
Code:
DoCmd.RunSQL "SELECT ID, Name, Address, Phone INTO newCustomer FROM Customer;"
Steven

There are 10 kinds of people in the world - those who understand binary - and those with friends
 
Old June 19th, 2003, 10:38 AM
Authorized User
 
Join Date: Jun 2003
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rylemer Send a message via MSN to rylemer Send a message via Yahoo to rylemer
Default

Steven,

Great!!! it works I really appreciate your help. :)

Thanks
Elmer





Similar Threads
Thread Thread Starter Forum Replies Last Post
Make Table Query CongoGrey Access 2 June 1st, 2007 06:22 AM
Can a Make Table Query produce a Linked table? kronik Access 5 May 16th, 2006 06:17 AM
Make table Query and Datepart marshaji Access 1 June 21st, 2005 12:36 PM
Make Table query : table in Another Database marnik Access 1 March 19th, 2005 12:39 PM
Error on Make-Table Query In Union Query rylemer Access 1 August 20th, 2003 07:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.