combo box linked to sub form

gbmarlysis

Registered User.
Local time
Tomorrow, 06:57
Joined
Jan 30, 2012
Messages
28
Hi,
i have a combo box on a form, i want a subform to show all the athletes races when i pick the athlete from th combo box. in properties of the subform it only lets me link to tables or queries..
TY
LB
 
I think you need something like "Demo" a new one.
Open "frmAthleteMain" and try.
I added a combo box on the Top of the form.
Look at VBA.
 

Attachments

Hi Stef
thankyou for the example, do you think it will work if the subform is connected to a combo box that isnt the table connected to the main form.
i wish i could understand that code....how did you learn. i feel like i've been humbled..
TY
LB
i would upload my file but i cant for some reason
 
Look at my "Demo" a new one.
Look at Word "SubormSingle", (below).
Open a "frmRacesSubormSingle" and try.
 

Attachments

i doubt if you can auto-link a subform to an unbound combobox

you need to base the subform on a query that refers to the combobox

then in the afterupdate event of the combobox, you just do

subdetails.requery
 

Users who are viewing this thread

Back
Top Bottom