Deleting a specific record via a macro

G

Guest

Is there a way to delete a specific record (from a table) via a macro. I
want the user to be able to delete a specific record from a table based on
entry of a primary key value. I have figured out how to delete the record
with a delete query but I can't figure out how to run the delete query from
within the macro.

Will
 
S

Steve Schapel

Will,

Just to expand on Anonymous's advice to use the OpenQuery action, you
may want to preced this in your macro with a SetWarnings/No action, to
suppress the display of the action query confirmation message.
 
G

Guest

Steve,
Thanks! That's just what I needed.

Will

Steve Schapel said:
Will,

Just to expand on Anonymous's advice to use the OpenQuery action, you
may want to preced this in your macro with a SetWarnings/No action, to
suppress the display of the action query confirmation message.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top