cannot delete form records...

A

ACastelo

I have a form that basically just pulls all of the data from one table(
select * from tablea;). In the Delete button I have the following code:

DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdDeleteRecord

The message that I get is: "The command or Action 'DeleteRecord' isn't
available now"

Now, the intersting thing is that if I open the application for
development, and I run the form from there, I am able to scroll through
the records and delete them. When I run the entire application, I can
see the form,scroll through the data, etc but when i try to delete a
valid record(not at end, etc) it gives me the above message.

I checked for allowdeletions, updateble query, modal =off, popup=off
etc, all of those settings are correct.

Any other ideas?

thanks,
Acie
 

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