Hello,
I have been a mostly a reader on this forum for a while but I recently came across something that I semi understand how to do but just can't seem to wrap my head around it understand.
After many days of searching Google and trying to find a well explained guide so that I could actually understand how cascading combo boxes work:
I was able to finally get one set of combo boxes working correctly and so I wanted to do it again on the form but this time I did it exactly the same and just changed the tables it was going to but for some reason even though its pulling everything correctly (... Looks like it to me)
It just comes up saying that there is no match in my column I am looking at [Trying to match type of Catalog]
Here is my code:
So that should pop up a msgbox telling me that Me.Publication.Column(1) = [Flyer, Catalog, etc]Private Sub Publication_AfterUpdate()
Dim StrTest As String
StrTest = "SELECT Page_Position FROM" & _
" Publication_Ads WHERE Publication = " & "'" & _
Me.Publication.Column(1) & "'" & _
" ORDER BY Publication"
MsgBox StrTest
Me.Page_Position.RowSource = StrTest
Me.Page_Position.Requery
End Sub
But what I am seeing is that even after I click on the drop down box it just shows me nothing even though I do have data in the tables that should match and be pulled up. I guess I might be overlooking something really simple but I wanted to post this and hope someone might be able to point me in the right direction and help me to understand it a little more ...
I did run into some other issues but I was able to determine that all the fields need to be the same type and not mixed which solved earlier errors but this now doesn't give me any errors and thus makes me wonder why it won't pull in the values for me now?
Thanks for looking!
Sorry for the really long post :\ and probaly a really stupid noob-ish question.