Update Query...I think....

  • Thread starter Thread starter Scott D
  • Start date Start date
S

Scott D

I want to use an Update query in Access to do the following:

I have a database that has a column OppAction with text values for
example Opportunity ID. This was an old database and I am now
programming in VB.Net and need to make some changes.

I need to be able to check the column OppAction for the string
"Opportunity ID" and if it is found make a Yes/No column OppID equal
to Yes. This seems very simple and straight foward but I cannot seem
to get the criteria in the update query formatted correctly. I have
many of these to check.

Extra Info:

The original database had a frontend ASP page that when a radio button
was checked the value of the button was passed to the column. In this
case the value was Opportunity ID. This was done instead of creating
bit columns and passing a 1 for checked and a 0 for unchecked.

Thank you in advance for help.
 
Scott said:
I want to use an Update query in Access to do the following:

I have a database that has a column OppAction with text values for
example Opportunity ID. This was an old database and I am now
programming in VB.Net and need to make some changes.

I need to be able to check the column OppAction for the string
"Opportunity ID" and if it is found make a Yes/No column OppID equal
to Yes. This seems very simple and straight foward but I cannot seem
to get the criteria in the update query formatted correctly. I have
many of these to check.

UPDATE TableName
SET OppID = True
WHERE OppAction = "Opportunity ID"
 

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

Similar Threads

Crosstab query (I think) 4
Access2000: Update query 6
Update Query Question 1
Access Query problem 1
Update query question 3
update query? 3
update a combo box using an update query 3
Must use an Updateable Query - Issue 0

Back
Top