G
Guest
I've posted several times and gotten some assistance with refreneces to
links, but I can't seem to get the supplied help to make my situation work...!
I'm getting very frustrated and cannnot seem to figure this out...I know
there must be a solution!
The best I can offer to describe my dillemma is this code, based on a link
from "Marsh" who kindly supplied it to me in another post...but like I said,
I can't seem to make the translation...
I have a combo box "cboSponsoring MAJCOM_ID" which is on a form. I want to
use it to "filter" or limit another combo box "cboBase_ID" using an
"AfterUpdate" Event Procedure but it doesnt seem to work...
Where have I gone wrong????
Here's the code best I can give it:
Private Sub cboSponsoringMAJCOM_ID_AfterUpdate()
Me.cboBase_ID.RowSource = "SELECT [AF Bases].Base_ID, [AF
Bases].Base_Name, MAJCOM_ID_Table.SponsoringMAJCOM_ID FROM " & _
" ([AF Bases] INNER JOIN MAJCOM_ID_Table ON [AF
Bases].Base_MAJCOM=MAJCOM_ID_Table.Sponsoring_MAJCOM) &"
" ORDER BY [AF Bases].Base_Name "
Me.cboBase_ID = Me.cboBase_ID.ItemData(0)
End Sub
links, but I can't seem to get the supplied help to make my situation work...!
I'm getting very frustrated and cannnot seem to figure this out...I know
there must be a solution!
The best I can offer to describe my dillemma is this code, based on a link
from "Marsh" who kindly supplied it to me in another post...but like I said,
I can't seem to make the translation...
I have a combo box "cboSponsoring MAJCOM_ID" which is on a form. I want to
use it to "filter" or limit another combo box "cboBase_ID" using an
"AfterUpdate" Event Procedure but it doesnt seem to work...
Where have I gone wrong????
Here's the code best I can give it:
Private Sub cboSponsoringMAJCOM_ID_AfterUpdate()
Me.cboBase_ID.RowSource = "SELECT [AF Bases].Base_ID, [AF
Bases].Base_Name, MAJCOM_ID_Table.SponsoringMAJCOM_ID FROM " & _
" ([AF Bases] INNER JOIN MAJCOM_ID_Table ON [AF
Bases].Base_MAJCOM=MAJCOM_ID_Table.Sponsoring_MAJCOM) &"
" ORDER BY [AF Bases].Base_Name "
Me.cboBase_ID = Me.cboBase_ID.ItemData(0)
End Sub