-2
は、それが番号からテキストに列のいずれのデータ型を変更するにはVBA Accessのデータ・タイプ
DoCmd.TransferText acImportDelim, acSpreadsheetTypeText, strFile, strPathFile, blnHasFieldNames
を使用することにより可能ですか? VBAアクセスを使用して?
は、それが番号からテキストに列のいずれのデータ型を変更するにはVBA Accessのデータ・タイプ
DoCmd.TransferText acImportDelim, acSpreadsheetTypeText, strFile, strPathFile, blnHasFieldNames
を使用することにより可能ですか? VBAアクセスを使用して?
Sub AlterTableX1()
Dim dbs As Database
' Modify this line to include the path to Northwind
' on your computer.
Set dbs = OpenDatabase("Northwind.mdb")
' Add the Salary field to the Employees table
' and make it a Money data type.
dbs.Execute "ALTER TABLE Employees " _
& "ADD COLUMN SomeNumber Number;"
dbs.Close
End Sub
詳細はこちらを参照してください。
問題について説明していただけますか? –
私はあなたがAccessにテキストファイルをインポートしようとしていると思うし、インポート後に、数値として解釈された列を変更して、今はTEXTのデータ型にしたいのですか?その場合は、その列のデータ型を設定するインポート仕様を作成するか、インポート後にテーブルを変更することができます。currentdb.Execute "ALTER TABLE [MyTable] ALTER COLUMN [FldA] TEXT(100)" –