D
DetRich
Hello All,
Upon click of a command button, I need to import from an Excel CSV file.
Ideally, I'd like to display the record and decide, Yes or No whether or not
to import the record into an existing table. The table has many more columns
than does the CSV file. I have no idea what the code behind the command
button should be and that is what I am asking for help with. I think I need
to:
1. Open a Open File dialog box to navigate to the CSV file.
2. Open the selected file.
File will have 1st row being column titles/headers.
When reading the file, it does not matter to me if we read the entire file
or record by record. File is likely 10K or less, with less than 100 rows & 7
columns.
3. Display the first record.
4. Keep record, Yes or No.
5. If keep record, then
import it to the table
Else
Drop record, move to next record.
End If
If reading the entire file at once, good idea would be to display all
records in a grid and have a simple Y/N checkbox as to whether to keep it or
not.
I know that's a lot to ask, but I've never done any Access when reading
other files.
TIA,
Rich
Upon click of a command button, I need to import from an Excel CSV file.
Ideally, I'd like to display the record and decide, Yes or No whether or not
to import the record into an existing table. The table has many more columns
than does the CSV file. I have no idea what the code behind the command
button should be and that is what I am asking for help with. I think I need
to:
1. Open a Open File dialog box to navigate to the CSV file.
2. Open the selected file.
File will have 1st row being column titles/headers.
When reading the file, it does not matter to me if we read the entire file
or record by record. File is likely 10K or less, with less than 100 rows & 7
columns.
3. Display the first record.
4. Keep record, Yes or No.
5. If keep record, then
import it to the table
Else
Drop record, move to next record.
End If
If reading the entire file at once, good idea would be to display all
records in a grid and have a simple Y/N checkbox as to whether to keep it or
not.
I know that's a lot to ask, but I've never done any Access when reading
other files.
TIA,
Rich