A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Pop-Up Subform not linking to Main Form



 
 
Thread Tools Display Modes
  #1  
Old December 30th, 2009, 08:19 PM posted to microsoft.public.access.forms
ABradley
external usenet poster
 
Posts: 1
Default Pop-Up Subform not linking to Main Form

I have a subform - frmLawEnforcement - that is accessed on the main form -
frmCorporateSecurity - by clicking on a command button from the main form.
The two forms are linked by the CaseIDNumber field.

If I place the subform as just an entry from with the main form, the
information shows as linking by the CaseIDNumber. When I enter the
information into the subform using the command button, the information does
not link to the case number.

I am not sure what I could be doing wrong. I am an intermediate Access user
but am fairly limited on VBA.
  #2  
Old December 30th, 2009, 08:31 PM posted to microsoft.public.access.forms
Gina Whipp
external usenet poster
 
Posts: 3,500
Default Pop-Up Subform not linking to Main Form

ABradley,

It would help if we could see the code you using with the Command Button.
Sounds like you are missing the Link Criteria but without seeing the code I
would only be guessing.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"ABradley" wrote in message
...
I have a subform - frmLawEnforcement - that is accessed on the main
orm -
frmCorporateSecurity - by clicking on a command button from the main form.
The two forms are linked by the CaseIDNumber field.

If I place the subform as just an entry from with the main form, the
information shows as linking by the CaseIDNumber. When I enter the
information into the subform using the command button, the information
does
not link to the case number.

I am not sure what I could be doing wrong. I am an intermediate Access
user
but am fairly limited on VBA.



  #3  
Old January 1st, 2010, 04:51 PM posted to microsoft.public.access.forms
Rick Brandt
external usenet poster
 
Posts: 4,354
Default Pop-Up Subform not linking to Main Form

ABradley wrote:

I have a subform - frmLawEnforcement - that is accessed on the main form
- frmCorporateSecurity - by clicking on a command button from the main
form. The two forms are linked by the CaseIDNumber field.

If I place the subform as just an entry from with the main form, the
information shows as linking by the CaseIDNumber. When I enter the
information into the subform using the command button, the information
does not link to the case number.

I am not sure what I could be doing wrong. I am an intermediate Access
user but am fairly limited on VBA.


"subform" is a specific term used to describe a form that is embedded within
another using a subform control. If you are opening the second form as a
popup then it is not a subform and will therefore not behave as one.

All you are doing is opening a new independent form with a filter applied.
You are doing nothing to control how it behaves when you enter new records.

One can make a popup form behave pretty close to how a real embedded subform
does, but it takes extra work and setup than what the wizard provides.

Is there a good reason why you don't want to use an embedded subform? That
really is the best way to do it.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.