Ok. Now I understand. The phrase form key through me off. Here is my table
structure:
tblBulletin (frmBulletin main source)
---------------------------------------
BulletinID (Autonumber, Primary Key)
State
Bulletin Number
Date Issued
Date Effective
Title
Summary
Analyst
tblBill (main source for subfrmBill)
--------------------------------------
BulletinID (Long, Foreign Key, Combined with BillNumber - Primary Key)
BillNumber (Text, Combined with BulletID - Primary Key)
tblBulletinLOB (main source for subfrmLOB)
-------------------------------------------------
BulletinID (Long, Foreign Key, Combined with BulletinLOB - Primary Key)
BulletinLOB (Text, Combined with BulletinID - Primary Key)
tblCategory
---------------
BulletinID (Long, Foreign Key, Combined with BulletinCategory - Primary Key)
BulletinCategory (Text, Combined with BulletinID - Primary Key)
Tables tblCategory, tblBulletinLOB, and tblBill all have one-to-many
relationships with tblBulletin. In each subform, the Link Master Field
Property is set to BulletinID (tblBulletin) and the Link Child Property is
set to BulletinID.
I think that is about all the relevant information pertaining the problem.
Let me know if you have any suggestions.
Thank you.
"JK" wrote:
> Normally and the best way to do it, though not mandatory, is like this:
>
> tbl (FrmMain Souce)
> ------
>
> fldMain_ID (key)
> Field
> Field
> Filed
> etc.
>
> tblDetail (SubForm Source)
> -----
> fldDetails_ID (key)
> FldMain_ID (long, Foreign Key)
> Field
> Field
> Field
> Field
> etc.
>
> Link tblMain with tblDetail on the Main_ID as one-to-many relationship
>
> In your *SubForm* properties you set *both*" Link Child Field" and "Link
> Master Field" to "fldMain_ID" (no quotations marks)
>
> if you still have problems, it will be easier to help you if you post here
> your actual tables structures (just the relevant fields), realtinship, if
> any and what you have now as Master and Child links.
>
> Regards/JK
>
>
>
>
> "AccessNovice" <(E-Mail Removed)> wrote in message
> news:6BE052D0-1415-4F28-9325-(E-Mail Removed)...
> > I'm not sure I know what you mean. Could you explain further? Thanks.
> >
> > "JK" wrote:
> >
> >> If your subForm is linked to the main form on a key other than the form
> >> key,
> >> that filed is Null, until you put a value in it.
> >> Thus the subForm has nothing to link to.
> >>
> >>
> >> Is that the case?
> >>
> >> Regards/JK
> >>
> >>
> >> "AccessNovice" <(E-Mail Removed)> wrote in message
> >> news:3F403528-3364-4CFB-BD26-(E-Mail Removed)...
> >> > No that didn't work. I think I found where the problem is, but still
> >> > do
> >> > not
> >> > know how to fix it. I wanted users to decide whether they wanted to
> >> > add a
> >> > new record or edit an existing record. Instead of the navigation
> >> > toolbar,
> >> > I
> >> > inserted a "Add Record" command button. In the main form properties, I
> >> > set
> >> > the AllowAddition Property to 'No' and in the 'On Click' code for the
> >> > command
> >> > button, I inserted the following code:
> >> > Me.AllowAdditions = True
> >> >
> >> > This works great with the main form, but does not allow new records to
> >> > be
> >> > added to the subforms. When I removed the command button and put the
> >> > navigation toolbar back in and set the main form 'AllowAddition'
> >> > Property
> >> > back to Yes, the subform still would not allow new entries.
> >> >
> >> > I guess my question is now. Is it possible to use a not allow
> >> > additions
> >> > unless an add record is clicked and still be able to add data to the
> >> > subforms? If so, what code am I leaving out? Also, will I have the
> >> > same
> >> > problem when I create an edit button and change allowedit property to
> >> > false?
> >> >
> >> > Thank you for your help.
> >> >
> >> >
> >> >
> >> > "Vinayak N" wrote:
> >> >
> >> >> Hi,
> >> >>
> >> >> Try entering some data into the main form fields and then see if you
> >> >> get the text boxes available in the sub-form for entering data.
> >> >>
> >> >> I know the step that I have told is very elementary but still let me
> >> >> know if you have already tried it and also then explain your problem a
> >> >> bit more in detail later.
> >> >>
> >> >> Regards,
> >> >> Vinayak
> >> >>
> >> >> AccessNovice wrote:
> >> >>
> >> >> > When I click the 'add record' button on the navigation toolbar, a
> >> >> > blank
> >> >> > record appears in the fields of my main form, but the text boxes to
> >> >> > enter
> >> >> > data into my subforms disappear making impossible to enter data into
> >> >> > the
> >> >> > subforms. What is causing this?
> >> >>
> >> >>
> >>
> >>
> >>
>
>
>
>
|