D
Domw001
I am trying to import a 2-column csv (server_data.csv) file into an Access
table.
The CSV holds a server name and it's IP address
e.g.
server001,10.136.193.226
server002,10.136.193.227
I am using the following code:
DoCmd.TransferText acImportDelim, , "RDP_ILO", "C:\server_data.csv", False
CurrentDb.TableDefs("RDP_ILO").Fields("F1").Name = "Server_Name"
CurrentDb.TableDefs("RDP_ILO").Fields("F2").Name = "Server_IP"
The process works but the IP address is treated as a "Currency" data type so
instead of 10.136.193.226 i get £10.14
If I create an empty table with the correct field data type and run the Get
External Data wizard it imports fine.
Any ideas?
table.
The CSV holds a server name and it's IP address
e.g.
server001,10.136.193.226
server002,10.136.193.227
I am using the following code:
DoCmd.TransferText acImportDelim, , "RDP_ILO", "C:\server_data.csv", False
CurrentDb.TableDefs("RDP_ILO").Fields("F1").Name = "Server_Name"
CurrentDb.TableDefs("RDP_ILO").Fields("F2").Name = "Server_IP"
The process works but the IP address is treated as a "Currency" data type so
instead of 10.136.193.226 i get £10.14
If I create an empty table with the correct field data type and run the Get
External Data wizard it imports fine.
Any ideas?