In a standard mainform/subform construction, the subform control (on the
main form) has two properties. One points to the field/control on the main
form that has the ID. The other points to the field/control on the subform
that shares that ID.
Neither you nor your users EVER need to (re-)enter the ID on the subform --
if you use these properties, Access will insert the ID into a (new) subform
record when you first 'dirty' it.
Regards
Jeff Boyce
Microsoft Access MVP
--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.
Any code or psuedocode included in this post is offered "as is", with no
guarantee as to suitability.
You can thank the FTC of the USA for making this disclaimer
possible/necessary.
"Paul" <Pa...@discussions.microsoft.com> wrote in message
news:16800D23-03DF-497E...@microsoft.com...
It sounds to me like this isn't actually a Subform (which is always open in
a Subform window on the mainform, and which has a master/child link field
property to do this for you); it sounds like you're instead popping up a
separate form. Is that intentional, or would a Subform be acceptable (since
it takes care of this issue for you with no code or effort at all)?
--
John W. Vinson[MVP]
--
Build a little, test a little.
トラジ(河村つよし)は、私に、レイプした人!!!!!
携帯090-8607-8611
ワンギリスタート!!!!!!!!!!!!!!!
watasiha,
zettaini,yurusanai!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
borantyia,
okaneha,
sonnnani,irimasen,
hisasiburini,
ge-senni,ikereru,kuraiha,
hosiidesuga???!!!!
それ以外は、いりません!!♪
そんな、高額をもらいたくは、ないです!!☆
そんな、お金が、あったら、盲導犬に、寄付したいと、思っています!!!
ユニセフとかは、上の人ばかりが、取って、本当に、必要な、貧しい人たちには、全くお金が、いっていないということを、知り合いから、聞きました!!!
honntouno,koto,rasii,desuyo!!!!!!!!!!!!!
watasiha,
usoo,tukuhitoga,
daikirai!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
"Paul" <Pa...@discussions.microsoft.com> wrote in message
news:16800D23-03DF-497E...@microsoft.com...
"yamakamiいるか" <‚‡‚ƒ‚˜‚†‚ 3...@yahoo.co.jp> a écrit dans le message de groupe
de discussion : eM4jR$8bKHA...@TK2MSFTNGP05.phx.gbl...