Solved

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

Posted on 2004-10-19
5
208 Views
Last Modified: 2006-11-17
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
Comment
Question by:madeatmidnite
  • 3
  • 2
5 Comments
 
LVL 39

Accepted Solution

by:
stevbe earned 500 total points
ID: 12353305
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
 

Author Comment

by:madeatmidnite
ID: 12353539
thank you, thank you, thank you !!!!!

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

thanks again,

Carrie
0
 

Author Comment

by:madeatmidnite
ID: 12371733
Any idea on how I would change this if the form has now become a subform?

Thanks
Carrie
0
 
LVL 39

Expert Comment

by:stevbe
ID: 12372117
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
 

Author Comment

by:madeatmidnite
ID: 12373680
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

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
vba sql wild card passing in code 3 24
Dynamically Reorder List Box 4 38
Combobox row source 2 21
Access datasheet - showing a number in scientific notation 4 23
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question