Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

Hi

 

I'm after some help with Access.

 

I have an Inventory database which has a form that shows a detailed view of each record and have created a query which when executed will change a number of fields to reflect a particular status. I have a field in the query called Inventory ID which obviously links the query to the relevant record in the main table. This field has a criteria of "[itemID]" but this prompts for the Inventory ID upon execution and don't want this. Leaving it blank changes all records so i'm after the correct criteria entry to make this work only on the open record.

 

Any ideas?

Posted
Do you need to state that it is attached to a particular form control and the current value of that control? From memory it's something that includes [Forms]![form-name]![itemID]
  • Thanks 1
Posted

I forgot to mention that I already tried [Forms]![MyForm]![FormField] but have just tried it with ItemID in place of FormField with no effect unfortunately.

 

The query doesn't give me any error or feedback so can't see what it's failing on so no help there.

Posted
Have a look in the Help file for the syntax or you could look at an Update Query. The latter gives you the opportunity to see the resulting changes to be made in the table, before running the actual query.
Posted
Turns out the query i created was corrupt as created it again with the criteria [Forms]![MyFormName]![FieldName] which now updates the current open record only with the changes specified. Thanks for the help.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...