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  

Subform Help



 
 
Thread Tools Display Modes
  #1  
Old August 20th, 2006, 02:16 AM posted to microsoft.public.access.forms
George
external usenet poster
 
Posts: 883
Default Subform Help

I created a form with two subforms on it and a combo box to search the
records.
If I select a name in the combo box and minimize the form and then open each
of the subforms they return the proper info. But when I open the form with
both subforms included in the main form they are blank. I tried adding this
to my combo's box Afterupdate - but I just get error message.

Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ID] = " & Str(Me![cboComboSearch])
Me.Bookmark = rs.Bookmarkd adding this to the Afterupdate on my combo box

Any Ideas ?

  #2  
Old August 20th, 2006, 04:12 AM posted to microsoft.public.access.forms
Steve Schapel
external usenet poster
 
Posts: 1,422
Default Subform Help

George,

Can you add the combobox to the Link Master Fields property of the
subforms, and the corresponding field (looks like it might be ID) to the
Link Child Fields property of the subforms?

--
Steve Schapel, Microsoft Access MVP

George wrote:
I created a form with two subforms on it and a combo box to search the
records.
If I select a name in the combo box and minimize the form and then open each
of the subforms they return the proper info. But when I open the form with
both subforms included in the main form they are blank. I tried adding this
to my combo's box Afterupdate - but I just get error message.

Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ID] = " & Str(Me![cboComboSearch])
Me.Bookmark = rs.Bookmarkd adding this to the Afterupdate on my combo box

Any Ideas ?

 




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:53 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.