Solved

whats wrong?

Posted on 2009-07-01
2
177 Views
Last Modified: 2013-11-28
I have a button on my form with the following code in it

CN_Web.Status = "complete"
Vessel_Sum_Web.Status = "complete"

I want it to update the currently displayed records status fields to "complete"

Any ideas.

0
Comment
Question by:HudsonMarine
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 60

Expert Comment

by:Kevin Cross
ID: 24757962
You would run these sql codes in the command of the button if I understand you correctly:

UPDATE CN_Web
SET Status = "complete"
WHERE ID = Forms!Your_Form_Name!ID 'Key for record

UPDATE Vessel_Sum_Web
SET Status = "complete"
WHERE ID = Forms!Your_Form_Name!ID 'Key for record
0
 
LVL 16

Accepted Solution

by:
Chuck Wood earned 500 total points
ID: 24758114
If you have these fields bound to controls (like a text box) on your form (hidden or visible), you can just set the control.
txtCN_Web_Status = "complete"
txtVessel_Sum_Web_Status = "complete"
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
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…

752 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