evermore
02-18-2009, 03:14 PM
Hi everyone
At the moment i have a form(FORM A) which contains a button(BUTTON A). When i press BUTTON A, it opens a query (QUERY A) which prompts the user to enter an input criteria to search TABLE A.
QUERY A is a Make Table Query, so basically my search/find results are being saved into a table (TABLE B).
I export TABLE B further on to .csv
Ok, so for instance, if i press BUTTON A and type in a search and press OK, everything works fine.
The second time around, im asked if i want to replace the existing TABLE B.( i have turned off the 3 prompt options in edit/find, but this still appears, although im not that worried).
I press Yes, and the prompt appears again, although this time i press cancel.
Now when i go to export to .csv, there is no TABLE B to export and an error occurs.
My question is, should i be adding exception handling to the csv export function or is there something i can do earlier on in the piece (BUTTON A function) that will be easier?
Thankyou so much.
EDIT: I decided to accompany BUTTON A with a txtbox, now the prompt does not occur and the table is always created, even if the txtbox is empty.
Thanks for those who looked at the thread.
At the moment i have a form(FORM A) which contains a button(BUTTON A). When i press BUTTON A, it opens a query (QUERY A) which prompts the user to enter an input criteria to search TABLE A.
QUERY A is a Make Table Query, so basically my search/find results are being saved into a table (TABLE B).
I export TABLE B further on to .csv
Ok, so for instance, if i press BUTTON A and type in a search and press OK, everything works fine.
The second time around, im asked if i want to replace the existing TABLE B.( i have turned off the 3 prompt options in edit/find, but this still appears, although im not that worried).
I press Yes, and the prompt appears again, although this time i press cancel.
Now when i go to export to .csv, there is no TABLE B to export and an error occurs.
My question is, should i be adding exception handling to the csv export function or is there something i can do earlier on in the piece (BUTTON A function) that will be easier?
Thankyou so much.
EDIT: I decided to accompany BUTTON A with a txtbox, now the prompt does not occur and the table is always created, even if the txtbox is empty.
Thanks for those who looked at the thread.