Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I update a field on reports

Status
Not open for further replies.

farnorth

Technical User
Aug 14, 2002
32
US
I have set up an .asp vbasic page that reports from a database table. I need to be able to have one field on each record be updated with the click of one button. Essentally after the report is printed I want to change the prinited field from False to True so it will not show up the next time the report is run. Is there a way to update all of a certain field with one action?

Thanks
Bob
 
You could use something similar to
Code:
UPDATE tableName SET Field1='True' WHERE RecordID IN(1,5,8,12)

Cheech

[Peace][Pipe]
 
Thanks Cheech, Since I am running a report, would I have to create a form on the report page to be able to click an update button? Or how would I implement the code to update all the records pulled on the report?

This one has me stumped.

Thanks agian.

Bob
 
You could either have a form that the user submits when the report is generated, or the details could be passed to an asp page that does all of the updating prior to displaying the report.

Cheech

[Peace][Pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top