Very close to figuring this out. Can you help?
The code below works beautifully in extracting addresses for the
AddressData table, but it always ends on an error. After the last record
is "posted" to the table it cannot find another "ST" record. I have tried
numerous ways to exit the loop, such as EOF True statements, setting a
counter, setting an exit several lines before the number of records, etc.,
etc. Nothing seems to work.
The error occurs on the line of code that reads: Do Until r!Field1 = "ST"
The database below contains only the two affected tables, one query and its
module. the AddressData table is empty. Run the Macro. You will see the
error message, but you can see that it brought all the address data
correctly over to AddressData table.
(See attached file: AddressLoader.mdb)
The code below works beautifully in extracting addresses for the
AddressData table, but it always ends on an error. After the last record
is "posted" to the table it cannot find another "ST" record. I have tried
numerous ways to exit the loop, such as EOF True statements, setting a
counter, setting an exit several lines before the number of records, etc.,
etc. Nothing seems to work.
The error occurs on the line of code that reads: Do Until r!Field1 = "ST"
The database below contains only the two affected tables, one query and its
module. the AddressData table is empty. Run the Macro. You will see the
error message, but you can see that it brought all the address data
correctly over to AddressData table.
(See attached file: AddressLoader.mdb)