Is there any way programatically to create a new record in a datasheet view sub form? I am trying to create revisions/additions to the detail items in my purchase order form, but can't figure out the correct code to make it happen.
with rs
.addnew
!field1 = whatever
!field2 = whatever
etc.
end with
set rs = nothing
that should be basically all you need to do. Of course you will need to change "subformcontrol" to the name of the subformcontrol on your main form, and you will need to change the field names and values assigned to them.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.