Update fields (1 Viewer)

ckhatch

New member
Local time
Today, 16:13
Joined
Feb 11, 2001
Messages
9
How would I go about updating a field in a record other than the record that I am displaying on my form
 

Fornatian

Dim Person
Local time
Today, 16:13
Joined
Sep 1, 2000
Messages
1,396
Depends what it is you are trying to achieve, you could...

a.Have a form open that relates to the record you want to change the field of. But set it's visible property to False, so to all intents and purposes the form looks as though it isn't open.

Then on a button click you could set the value of the forms field like:

Forms!MyHiddenFormName!FieldToUpdate = "The New Value"

or alternatively

b. Build an update query to update the info in the other table(setting criteria to only retrieve the record(s) you need.

c. If it's a related table - pull the field through in the query and set the fields property to false so that you can update it on the form without the user seeing it.

There are three options. I'll leave it up to you to decide which it's to be.

Ian
 

Users who are viewing this thread

Top Bottom