Field can not be updated Error 3164

G

Guest

Hi all,
I have searched the newsgroups but I can't find something that is within
what I am looking for.
I have a form with a subform based on a query.
There is a Yes/No field in that query that originates from the "ONE" side of
the one to many relationship.
I also have a combo box to store the PK of the ONE side table.
after I create a record on the subform by selecting a value from the ONE
side table and then filling in the rest and click on that Yes/No (a check
box) field, I get a error message poping up saying " Field can not be updated
Error 3164 ".
But if I click out of that particular new record and click back on that
Yes/No field, it works fine with no error message. But I don't want to get
user to remember to always click out of that new record and come back to
update that check box. What is wrong here. I can't figure it out. Can anyone
help me?
Thanks
 
G

Guest

I reply to my own post for those who may encounter the same problem.

I have put this line:

Me.Refresh

in the AfterUpdate event of the cbo box that I have to store value which is
the PK of the ONE side of the table that is on the subform.
 

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

Top