Sub-form woes.

Egg 'n' Bacon
5StarLounger
Posts: 736
Joined: 18 Mar 2010, 11:05

Sub-form woes.

Post by Egg 'n' Bacon »

I'm having a bit of a torrid time at the moment and now have a sub-form that is fighting me; it's not allowing records to be added.

I'm fairly certain it's a pretty basic error, but I can't find it.

Here's the offending article.
SubFormHelp.zip
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78545
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Sub-form woes.

Post by HansV »

Open the subform in design view.
Select the ID text box.
Set its Control Source to ID instead of tblSub.ID (you can select it from the dropdown list).
Close & save the subform.

That's it! Because the Control Source was not equal to ID, the subform couldn't be linked to the main form on ID.
Best wishes,
Hans

Egg 'n' Bacon
5StarLounger
Posts: 736
Joined: 18 Mar 2010, 11:05

Re: Sub-form woes.

Post by Egg 'n' Bacon »

Thank you. I thought it would be something simple.

Cheers