before update Q

  • Thread starter Thread starter mcnewsxp
  • Start date Start date
M

mcnewsxp

using one of those continuous forms as a subform.
i want to make sure a certain field in the row contains a value before the
next insert can occur.
i am using the defore update event and setting focus back to the control if
this field is null.
it works fine once.
the second time it adds the new row anyway.
must be a better way.
?

TIA.
mcnewsxp
 
using one of those continuous forms as a subform.
i want to make sure a certain field in the row contains a value before the
next insert can occur.
i am using the defore update event and setting focus back to the control
if this field is null.
it works fine once.
the second time it adds the new row anyway.
must be a better way.
?

i add cancel = true and it now works.
 
mcnewsxp said:
using one of those continuous forms as a subform.
i want to make sure a certain field in the row contains a value
before the next insert can occur.
i am using the defore update event and setting focus back to the
control if this field is null.
it works fine once.
the second time it adds the new row anyway.
must be a better way.
?

Please post the code you're using? Are you setting the BeforeUpdate
event procedure's Cancel argument to True, as you should to cancel the
update?
 

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