ACC2000: How to Use Code to Change a Field's Data Type at Run Time (210304)
The information in this article applies to:
This article was previously published under Q210304 For a Microsoft Access 97 and earlier version of this article, see 128016.
Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SUMMARY
You can use ActiveX Data Objects (ADO) and Data Definition Language (DDL) in Visual Basic for Applications code to change the data type of a field in an Access database (.mdb) or an Access project (.adp).
This article shows you how to create a sample, user-defined Sub procedure named sChangeDataType that uses ADO and DDL to change the data type of a field at run time.
REFERENCESFor more information about changing a field's data type, click Microsoft Access Help on the Help menu, type change a field's data type in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbhowto kbProgramming KB210304 |
---|
|