Wrox Programmer Forums
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 January 4th, 2007, 10:55 AM
Registered User
Join Date: Mar 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default create table/append data.

I keep getting an 'out of resource or memeory' error when I am trying to alter a column in a tbale from text to date using:
strSQL = "ALTER TABLE tblSummary ALTER COLUMN DateExpertInstructed DATE"
CurrentDb.Execute (strSQL) .

In order to get round this problem, I want to be able to copy the structure from one table to a new table with new amended field types and then append the data from one table to another using vba. I'm using access 2003.

Any ideas?
Old January 4th, 2007, 11:47 AM
Friend of Wrox
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts

If you are just doing a one time update, then create the new table using the proper data types, and then append the old table to the new one using the fields you want. Then just run the append query.

Did that help?


Similar Threads
Thread Thread Starter Forum Replies Last Post
Make Table & Append Querys lryckman Access 1 January 25th, 2006 05:38 PM
Append Query to Table ! penta Access 3 February 24th, 2005 04:24 PM
VBA to create new tbl and append 3 tbls ckentebe Access VBA 2 May 28th, 2004 10:43 PM
copy and append records from table-A to table B bhunter Access 6 March 9th, 2004 02:02 PM
Append Records From One Table to Another Table twsinc Access VBA 4 February 29th, 2004 03:04 PM

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