add a yes/no field to a table in code

Mcgrco

Registered User.
Local time
Today, 12:27
Joined
Jun 19, 2001
Messages
118
Does anyone know who to do this.

Thanks
 
Function tbalter()

Dim mysql
mysql = "ALTER TABLE yourtablename ADD yournewfieldname yesno;"
DoCmd.RunSQL mysql

End Function

Note that this code has no error trapping and is very basic
Search help for alter table command for more info

HTH

Norman
 
Thanks,

That worked fine
 

Users who are viewing this thread

Back
Top Bottom