Continuous Forms Question

J

Jeff Garrison

Hello all....this should be simple, but I must be missing something...

I have a continuous form that has a Yes/No check box in each line. I also
have a "Delete Record" button on each line. What I need to do is to have
the On Current (I assume) set up so that if the Yes/No checkbox is checked,
to disable or lock the Delete Record button. I'm using an If...Then do lock
other fields to prevent editing, but can seem to get it right for the
button. I've used DeleteRecord.Visible and DeleteRecord.Enabled, but they
still are enable either way.

What am I missing?

Thanks

Jeff G
 
M

mscertified

You cannot disable controls for individual lines on a continuous form. What
you need to do is to attach some code to the OnClick event for the button to
check the checkbox and allow/disallow the deletion. You have disabled
deleting via the record pointer right?

The whole design seems kind of weird to me. Why not only display the rows
where deletion is allowed and eliminate the button?

-Dorian
 
J

Jeff Garrison

How do you disable deleting via the record pointer? Never thought of that
one...

Jeff
 
C

Charles Wang[MSFT]

Hi Jeff,
I have replied you under your other post at
microsoft.public.access.formscoding. Please post back under that post.

Please feel free to let me know if you have any questions or concerns. Have
a nice day!

Best regards,
Charles Wang
Microsoft Online Community Support
=====================================================
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
 

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