Skip to content

Il sito di Ivan Piffer

Narrow screen resolution Wide screen resolution Increase font size Decrease font size Default font size    Default color brown color green color red color blue color
You are here: HOME arrow Informatica arrow Software arrow Database MS Access con nomi di tabelle e campi in Maiuscolo : Come trasformare tutto in lowercase
Skip to content
Database MS Access con nomi di tabelle e campi in Maiuscolo : Come trasformare tutto in lowercase PDF Stampa E-mail
Valutazione utente: / 0
ScarsoOttimo 
Scritto da Ivan Piffer   
giovedì 14 luglio 2011

da http://nwds-ak.com/Portals/1/images/NWDSAKAccess2007Logo.png a http://www.tuxjournal.net/wp-content/uploads/2009/07/postgresql.png

Ho fatto un piccolo modulo in MS Access per trasformare tutti i nomi delle tabelle (table) e dei campi (fields) in minuscolo (lowercase).

Molto utile per l'esportazione in db come Postgresql.

Function FieldsNameAllTablesToLCASE()

On Error GoTo ErrorHandler

        Dim Database As DAO.Database
        Dim Tabella As DAO.TableDef
        Dim Campo As DAO.Field
        
        'Imposto il database
        Set Database = CurrentDb()
        MsgBox ("Nome Database=" + Database.Name)
        
        'Ciclo il nome delle tabelle nel database
        For Each Tabella In Database.TableDefs
          If Not Tabella.Name Like "msys*" Then
            If Not Tabella.Name Like "~tmp*" Then
              MsgBox ("Nome Tabella=" + Tabella.Name)
              Tabella.Name = LCase(Tabella.Name)
              'Ciclo la tabella
              For Each Campo In Tabella.Fields
               'MsgBox ("Nome Campo=" + Campo.Name)
               Campo.Name = LCase(Campo.Name)
              Next Campo
            End If
          End If
        Next Tabella

RefreshDatabaseWindow

ErrorHandler:
  Exit Function

End Function

Commenti
Nuovo Cerca RSS
Commenta
Nome:
Email:
 
Website:
Titolo:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."


MySQL
 
< Prec.   Pros. >