commiting of changes at checkbox

  • Thread starter Thread starter SePp
  • Start date Start date
S

SePp

Hi

I want to select rows in a form via a checkbox. At the same Form I
want to click a button and I make another Select statement.

But at the moment I click at the button the changes are not made in
the database. First I have to go out of the form and then re-enter the
form and after this procedure I can click the button and it is
possible to see all the slected items.

Is there a way to commit the changes straight at the moment I clicked
the checkbox.

(I tried already form.requery, but I don't like that way because the
user loses the focus)

Thanks in advance.

Kind regards
Sebastian
 
Try putting this in the code of the button before you do any actions with the
button.

me.dirty =false

hth
 
If Me.Dirty = True Then
Me.Dirty = False
End If

--
Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
(no e-mails, please!)












- Show quoted text -



Thank you guy's. You helped a lot!

regards
Sebastian
 

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

Back
Top