You're welcome
I'm back, lol. I put the following in my code:
and it bounces back with an Run-time error "3129"Code:DoCmd.RunSQL ("Termination_strip")
Any idea why? The query runs if I run it alone.Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'
As the error says, DoCmd.RunSql is used with SQL statements for action queries such as UPDATE
It can't be used with SELECT statements
If termination_strip is a query then use
DoCmd.OpenQuery "termination_strip"
("Termination_strip") is not SQL is a query name.
Do this:
Code:DoCmd.OpenQuery "Termination_strip"
Newbie mistake and it works.
Is there a way, out of curiosity, to have my Update query show me what exact records were modified? Like pull the First name and display it in a table?
you could use an append query with the same criteria. It can be usefull for tracking changes/showing previous values. You would have to make a table specifically for this though.