Access VBADiscuss 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
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.
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.