Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 219
  • Last Modified:

How to update table along with a "delete" checkbox. More questions from a previous question a couple of days ago.

From a previous question -- now I need more help
--------------------------------------------------------------------------------------
http://www.experts-exchange.com/Databases/MS_Access/Q_21171637.html

Comment from Moother  feedback

As for the jump you want to accomplish, you can just open up a small form that has 1 text box and ask the user to confirm the delete with a reason. then recalc your form.
 
---------------------------------------------------------------------------

I did as Moother suggested and made one table with all the data and then just run one query for when the deletedMed checkbox is clicked and one query for when it is not.  I really like the way that it works -- thanks for pointing me in the right direction.  But now, I don't know how to open up a "small form that has 1 text box and ask the user to confirm and delete with a reason"   I can make the form, but how do I get the results back into the table under the reason field?  I realize that it is probably one of the most basic things that you can do with Access, but for some reason I can't make it work.
Thanks,
Carrie

0
madeatmidnite
Asked:
madeatmidnite
  • 3
  • 2
1 Solution
 
stevbeCommented:
if you include a textbox (you can make it invisible if you want) on the main form then in the close event of the popup form you can write the results diredctly to the form...

Private Sub Form_CLose(Cancel As Integer)
    Forms!MyMainForm.COntrols("txtReason").Value = Me.txtReason.Value
ENd Sub

Steve
0
 
madeatmidniteAuthor Commented:
thank you, thank you, thank you !!!!!

I don't know what I was doing wrong, but this worked perfectly.

thanks again,

Carrie
0
 
madeatmidniteAuthor Commented:
Any idea on how I would change this if the form has now become a subform?

Thanks
Carrie
0
 
stevbeCommented:
If you mean that you are updating a subform
Forms!MyMainForm.MySubFormControl.Controls("txtReason").Value = Me.txtReason.Value

MySubFormControl ... be sure to use the name of the subform control and not the name of the form that you embedded.

Steve
0
 
madeatmidniteAuthor Commented:
Thank You.  Sorry to bother you so late after I asked the question, but decided to make it a sub form instead.  Works great!

Carrie
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now