A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

alter table in access code



 
 
Thread Tools Display Modes
  #1  
Old September 6th, 2006, 07:16 AM posted to microsoft.public.access.forms,microsoft.public.access.formscoding,microsoft.public.access.reports
00KobeBrian
external usenet poster
 
Posts: 77
Default alter table in access code

How can I issue an "alter table" command in a code in Access 97 ? THanks.


  #2  
Old September 6th, 2006, 07:43 AM posted to microsoft.public.access.forms,microsoft.public.access.formscoding,microsoft.public.access.reports
Dirk Goldgar
external usenet poster
 
Posts: 1,164
Default alter table in access code

"00KobeBrian" wrote in message

How can I issue an "alter table" command in a code in Access 97 ?
THanks.


You can execute it like any other SQL statement:

DoCmd.RunSQL "ALTER TABLE ..."

or

CurrentDb.Execute "ALTER TABLE ..."

Or you could manipulate DAO objects to modify the table, but that's more
complicated.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


  #3  
Old September 6th, 2006, 07:46 AM posted to microsoft.public.access.forms,microsoft.public.access.formscoding,microsoft.public.access.reports
Dirk Goldgar
external usenet poster
 
Posts: 1,164
Default alter table in access code

"00KobeBrian" wrote in message

How can I issue an "alter table" command in a code in Access 97 ?
THanks.


BTW, why did you crosspost this to .reports? It doesn't seem relevant
to that newsgroup. It's not terribly relevant to any of the groups you
posted it to; why not to .modulescoding or .modulesdaovba instead?


--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:36 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.