Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import Specification Does Not Find a Field

Status
Not open for further replies.

annie52

Technical User
Mar 13, 2009
164
US
I have a command button that imports data from an Excel spreadsheet and puts the data into a new table. If the user changed the spreadsheet (e.g., deleted some columns), Access prompts them for the missing information.

If the user clicks on the Cancel button, I display an appropriate message by trapping the 2001 error. I want to display the same message and prevent further parameter prompts if the user clicks on the OK button. I can't figure out how to do that.
 

One way would be to use a boolean field.
Begin with the field set to TRUE. When the user clicks the OK button, set the value to FALSE.
At every parameter prompt, begin with:
IF booleanField THEN
prompt user.

Randy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top