Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
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 April 3rd, 2005, 01:18 PM
Friend of Wrox
 
Join Date: Mar 2005
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to generate ALTER TABLE statements for all for

How to generate ALTER TABLE statements for all foreign key to primary key refrences in vba?
I wonder how i can generate ALTER TABLE statements for all foreign key to primary key references of current
access db using vba and writeing them to a text file. I be happy if some one show me a working code .Thanks



 
Old April 4th, 2005, 12:31 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You're thinking of SQL Server etc. I don't think Access does this.


mmcdonal
 
Old April 5th, 2005, 11:31 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

What is the alteration that you want to make?
Could you describe the process you are trying to set up?
 
Old April 5th, 2005, 11:36 AM
Friend of Wrox
 
Join Date: Mar 2005
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
Default

well i am trying to use meta data of access database to reconstruct the alter statements and save them in to a file!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot generate insert statements in datasource Maxxim ASP.NET 2.0 Professional 1 July 6th, 2007 08:04 AM
Help on 'Alter Table' command charuni Classic ASP Basics 0 April 14th, 2006 11:14 AM
How to generate CREATE TABLE statements for tables method Access VBA 0 April 3rd, 2005 01:17 PM
(oracle 8i)Alter Table <table> coalesce partition combo Oracle 3 October 13th, 2004 09:35 AM
ALTER TABLE Daniel Schaffer Access ASP 0 April 25th, 2004 12:47 PM





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