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 gkittelson 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 report or update only the record a user is in?

Status
Not open for further replies.

mrushton

Programmer
Jun 27, 2005
6
GB
I have a fairly simple database, currently the user adds details then presses a 'Save and Send" button which emails a reports all records where [Reported]=No. Except if other users are entering info it picks up all the new entries etc...so I want to know how to set only the value for THAT record, and report only THAT record. Can some of you talented people out there help me with something that is probably really easy to do...but not in my knowledge base.

Thanks

existing:
update [AM - New Supplier Information] set [Reported]=True
 
Hi

Extend the criteria of your report (currently I assume [Reported] = false) to [Reported] = false AND PrimeKey = Me.PrimeKey, where PrimeKey is the unique identifier of the record (and is a control on your form)

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Thanks, this makes sense. I currently report with the simple query:

Field: Reported
Table: AM Add Offer
Criteria: No

To update the record, to replace my exisiting "Run SQL" code
what will this change to? The contol on the first form is [AM Company Name]

Thanks heaps





 
Something like:

DoCmd.RunSQL "UPDATE .... WHERE REported = False AND [AM Company Name] = '" & Me.[AM Company Name] & "';"

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top