The data file looks like this:
Rod 12345 Bug Place Programmersville AZ12345
Anne 1247 Drover Ln Somewhere CA11111
Bill 58967 East Lane N Towne HI22222
Cindy 985 1st, Apt A Burgers ND33333
Fields on the program's form tell the program the names and positions of the columns.
The program uses the Line Input statement to read the data one line at a time. It uses the column names and positions to generate SQL INSERT statements similar to the following:
INSERT INTO Addresses (Name, Address, City, State, Zip)
VALUES ("Rod ", "12345 Bug Place ",
"Programmersville ", "AZ", "12345")
The program uses DAO to execute these statements to create the database records.
|