Solved

whats wrong?

Posted on 2009-07-01
2
173 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
2 Comments
 
LVL 59

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
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…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

778 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