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  

subforms



 
 
Thread Tools Display Modes
  #1  
Old October 26th, 2006, 10:01 AM posted to microsoft.public.access.forms
Natasha
external usenet poster
 
Posts: 83
Default subforms

Hi

I have a main with customer info, Name address ect and a subform with Cooler
info. There can be more than one cooler per customer. The CompanyName field
is a combo box with a number of columns for addtess ect. The other fields are
filled in automatically using record source =companyname.column(3) ect and
this worked fine. The customer box was bound to CustomerID which links it to
the subform and the Link Master and child fields are CustomerID. The problem
with this was that the coolerinfo didn't come up when i chose a companyName.
The record source for the main form is qcustomer and for the subform is
tblservicehist.
So i changed the combo box to be unbound and created another text box called
customerID and the controlsource is CustomerID with coding put into the
afterupdate
Private Sub CompanyName_AfterUpdate()
Me.CustomerID.SetFocus
DoCmd.FindRecord Me.CompanyName
Me.CompanyName = Null

Now when i chose a companyName the cooler info comes up but the address ect
on the main for doesn't come up now.

Does anyone know why and how can i fix this.
Thx

End Sub
 




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 04:33 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.