Accessing data from a subform in the parent form's recordset
- From: Pat <Pat@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 28 Mar 2008 10:32:01 -0700
I have a field in the main DB that is the record ID (autonumber) which is not
displayed on the parent form. But because I have a table relationship setup
with the child table I need to access this field from child form when
inserting records into the child DB. It works if the record is existing and
being edited, but on a insert into the main table it will not be visable to
the child.
I am opening the parent form in Add Mode with the following syntax:
DoCmd.OpenForm "frm_ModifyFirearms", acNormal, , , acFormAdd, acDialog
The field in the main db is firearm_id. The field in the child DB is
weaponid. The subform does have the fileds linked on the parent form.
I hope I made some since of this question. I am new to Access and VBA.
Thanks in advance....
.
- Follow-Ups:
- Re: Accessing data from a subform in the parent form's recordset
- From: Albert D. Kallal
- Re: Accessing data from a subform in the parent form's recordset
- From: Jeanette Cunningham
- Re: Accessing data from a subform in the parent form's recordset
- Prev by Date: RE: Add record programmatically with values from two recordsources
- Next by Date: Email address validation
- Previous by thread: Sub Forms Visible IF/Then
- Next by thread: Re: Accessing data from a subform in the parent form's recordset
- Index(es):
Relevant Pages
|