Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rename tables and fields in Access 97

Status
Not open for further replies.

cubi

IS-IT--Management
Sep 20, 2001
32
US
Hi,

Is there a quick way to rename every table, and every field in the table, to ALL CAPS in Access 97?

Thanks
 
WHY WOULD YOU WANT TO DO THAT?

- Anyway, each to his own.. ..

Try This


Dim tdf As TableDef
Dim db As Database
Set db = CurrentDb
For Each tdf In db.TableDefs
If tdf.Name Like "MSys*" Then
' Dont Change System tables
Else
For Each fld In tdf.Fields
fld.Name = FunctionConvertToUpperCase(fld.Name)
Next fld
tdf.Name = FunctionConvertToUpperCase(tdf.Name)
End If
Next tdf



'ope-that-'elps.

G LS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top