Setting Values

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

How do you set the value in a table? I have a Subform that has a
record in it. It contains a value that is placed there from a popup
form. It has the RecordID from another table that is not used in this
subform. When I delete this record I need it to go to the table where
it came from and reset a value in that table. How do I refrence the table?

TableName!FieldName = 0

Is this right?

Thanks DS
 
How do you set the value in a table? I have a Subform that has a
record in it. It contains a value that is placed there from a popup
form. It has the RecordID from another table that is not used in this
subform. When I delete this record I need it to go to the table where
it came from and reset a value in that table. How do I refrence the table?

TableName!FieldName = 0

Is this right?

Thanks DS

No, it's not. You can't reference a table in that way.

You'll need to run either an Update query (to update the value of the
field in an existing record) or an Append query (to add a new record).

John W. Vinson[MVP]
 
John said:
No, it's not. You can't reference a table in that way.

You'll need to run either an Update query (to update the value of the
field in an existing record) or an Append query (to add a new record).

John W. Vinson[MVP]
Thanks John,
I've decided on a DLookUp and then I'm trying to set the value. (See
DLookUp not working.
Thanks
DS
 

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

Back
Top