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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Old Access Macro not running all steps in Access 2013

Status
Not open for further replies.

evil1966

MIS
Dec 2, 2013
57
US
In a legacy database originally built in Access 95 and now in Access 2013 I have form that runs a simple macro. Originally it opened a table - used sendkey to select all records and delete them, then closed the table. Then it ran an append query to add new records to the table. The append still works, but nothing gets deleted in the table. I thought creating a delete query and running that then the append query would work (see attached) but I'm still just adding more records to the table.

Any ideas?

Thanks!
 
 http://files.engineering.com/getfile.aspx?folder=8a510b2a-3a71-421b-a14b-5b98d7a67b7d&file=macro.jpg
Thanks for the reply!

The delete query deletes all records in the table and works fine when I run it by itself. I have no code as the jpg I attached above shows:

SetWarning
Warning On No

Open Query
Query Name qryErollmentForm Delete
View Design
Data Mode Edit

Open Query
Query Name qryApplication Form
View Datasheet
Data Mode Edit

MessageBox
Message Enrollment table has been updated!
Beep Yes
Type None
Title

I get new records from the append query and the message box.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top