Importing a CSV File
You can define an action for a button to import a CSV file for adding content to a table.
Prerequisites
- You have created a model that contains a table.
- You have created at least one column in the table and defined its data type.
- You have a CSV file or text file that meets the following requirements:
- The file is comma or semi-colon delimited.
- The file must contain same number of columns as the table where you want to add the content.
- The data type of each column in the file must match the data type of each column in the table.
Procedure
- In Layout view, select the Compose task panel.
- From the Basic Controls pane, drag and drop a button onto the table where you want to import content from a CSV file.
- Right-click the button, then in the context menu, select Action…
- In the Define Action dialog box, on the Actions tab, click the Add Action icon. In the context menu, select More, then select Import CSV.
- In the Action Properties area:
- In the To dropdown list, specify the table into which you want to import the CSV file content.
- In the Insert dropdown list, specify the location in the table where you want to add the CSV file content.
- Choose the Close button.
- To check the button that you added: