subform adding rows after update

G

Guest

i have an MAINFORM and an SUBFORM on it in datasheet view, and one command
button
now code goes like this
on cmd click()
if isnull(forms!mainform!subform!fieldx!.form) then
msg box( " recquired data ")
end sub
here datasheet subform addindg the ros automatically after update hence the
command button click event continues to fire how to avoid it please
 
M

Marshall Barton

balu said:
i have an MAINFORM and an SUBFORM on it in datasheet view, and one command
button
now code goes like this
on cmd click()
if isnull(forms!mainform!subform!fieldx!.form) then
msg box( " recquired data ")
end sub
here datasheet subform addindg the ros automatically after update hence the
command button click event continues to fire how to avoid it please


When posting code, please use Copy/Paste so we can see
exactly what you are using when a problem occurs. Your code
above has so many typos that I can't tell if the code is bad
or if you just typed it here improperly.

Your problem description is also dificult to decipher, but
the way I interpret it, I can not see how that code logic
can cause the problem I think you are describing. I'm
guessing that you have some other code that is causing
whatever is going wrong.
 

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