Microsoft
Software
Hardware
Network
Question : Application.Quit leaves MSACCESS.EXE in memory?
Using Access 2003, I have error-handling code in procedures which, when an error is encountered, displays a message box to inform the user that there is a problem, and then executes the following line:
Application.Quit acSaveNone
What is happenning about 20% of the time when this logic is executed is that the application seems to close - it vanishes from the screen and no longer appears in the taskbar - however Access itself remains in memory. It is still present in the Task List. The other 80% of the time it works as expected.
When it fails, I get a message along the lines of "The command or action"quit" is not available now".
The fact that Access is still in memory is a problem when attempting to restart the application following an error.
Is there a better method to use instead of Application.Quit? What reasons are there why the Quit command might not be "available now"?
Thanks in advance for your help.
Answer : Application.Quit leaves MSACCESS.EXE in memory?
Using command line tools to export data from a MySQL database into a CSV file is quite easy. Here's how:
mysql -uexampleuser -pletmein exampledb -B -e "select * from \`person\`;" | sed 's/\t/","/g;s/^/"/;s/$/"/;
s/\n//g' > filename.csv
Here is some sample output of the above:
"id","username","group","p
assword"
"1","tux","admin","5f4dcc3
b5aa765d61
d8327deb88
2cf99"
"2","tlugian","admin","5f4
dcc3b5aa76
5d61d8327d
eb882cf99"
"3","saiyuki","admin","5f4
dcc3b5aa76
5d61d8327d
eb882cf99"
"4","fred","staff","5f4dcc
3b5aa765d6
1d8327deb8
82cf99"
"5","barney","staff","5f4d
cc3b5aa765
d61d8327de
b882cf99"
"6","wilma","admin","5f4dc
c3b5aa765d
61d8327deb
882cf99"
And now for the explanation:
Starting with the MySQL command. I wont explain the -u and -p options they are straight forward (if in doubt man mysql). The -B option will delimit the data using tabs and each row will appear on a new line. The -e option denotes the command to run once you have logged into the database. In this case we are using a simple SELECT statement.
Onto sed. The command used here contains three seperate sed scripts:
s/\t/","/g;s/^/"/ <--- this will search and replace all occurences of 'tabs' and replace them with a ",".
;s/$/"/; <--- This will place a " at the start of the line.
s/\n//g <---- This will place a " at the end of the line.
After running the result set through sed we redirect the output to a file with a .csv extension.
Random Solutions
How to create .properties file to solve this
droid not syncing when outlook is closed
Sage ACT 2010 - How to create the database in the server and provide connection for remote computers
read rpg data file in windows
Suggestions on Architecture for New Application
Run the first php script in background - When done - run the next script ...
OpenVPN Management Port 7505 telnet problem
SQLCommandBuilder - GetUpdateCommand, GetInsertCommand and GetDeleteCommand Questions
Adobe - monitor profile [..] appears to be defective. Please rerun your monitor calibration software
Mail delivery has failed