
Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
Thanks, Doug, but that still gives me "Expected End of Statement" errors in
several locations (it moves depending on what I try to correct).
In my table, Base_MAJCOM is a TEXT field so I tried your second iteration...
What are the Chr$(34) statements doing? Not sure I understand...
See, part of the problem is this database has faced a little "mission creep"
and was doing just fine the way I had it developed (albeit, not that
efficiently, but it worked).
So, the form the combo boxes are on is linked to a table and the form is
tabbed so there are parent child issues, etc. Not sure that makes any
difference for my purposes, but it sure seems to complicate things for my
understanding.
For what it's worth, I've gotten the qurey to work before, but the criteria
doesn't update when I change the MAJCOM name to limit the Base Name to the
new MAJCOM. That is my ultimate goal and can't seem to make happen.
Thank you very much for your insight, keep it coming!
Chip
> Me.cboBase_ID.RowSource = "SELECT [AF Bases].Base_ID, " & _
> "[AF Bases].Base_Name, " & _
[quoted text clipped - 46 lines]
> > Me.cboBase_ID = Me.cboBase_ID.ItemData(0)
> > End Sub
Douglas J. Steele - 18 Nov 2005 22:43 GMT
Try copy-and-pasting the exact code you're using, in case you made an error
transcribing.
Chr$(34) is an easy way of inserting a double-quote (")
As to your other question
> Also, what are the impacts of the relationships between these two
> entities
> (Base_ID Table) & (MAJCOM_ID_Table) ? How do they affect my results?
> Understanding that may help me better understand what I am doing wrong...
I don't understand what your question is. These are your tables, not mine:
how are they related?

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> Thanks, Doug, but that still gives me "Expected End of Statement" errors
> in
[quoted text clipped - 78 lines]
>> > Me.cboBase_ID = Me.cboBase_ID.ItemData(0)
>> > End Sub
david@epsomdotcomdotau - 18 Nov 2005 23:40 GMT
> doesn't update when I change the MAJCOM name
Listcount is a way to force MyCbo to requery, when a
simple MyCbo.Requery isn't working. In the after update
event for MAJCOM, put something like this:
n = MyCbo.listcount
Often, MyCbo.Requery is not required at all, because
MyCbo requeries when the form changes, or the Cbo
rowsource changes. .ListCount works for those cases
where MyCbo does not requery because Access optimises
out the requery action
OTOH, if your cbo is not showing any rows at all, it
probably because you haven't got the RowSource right
yet.
(david)
> Thanks, Doug, but that still gives me "Expected End of Statement" errors in
> several locations (it moves depending on what I try to correct).
[quoted text clipped - 70 lines]
> > > Me.cboBase_ID = Me.cboBase_ID.ItemData(0)
> > > End Sub
Also, what are the impacts of the relationships between these two entities
(Base_ID Table) & (MAJCOM_ID_Table) ? How do they affect my results?
Understanding that may help me better understand what I am doing wrong...
Thanks,
Chip
> Me.cboBase_ID.RowSource = "SELECT [AF Bases].Base_ID, " & _
> "[AF Bases].Base_Name, " & _
[quoted text clipped - 46 lines]
> > Me.cboBase_ID = Me.cboBase_ID.ItemData(0)
> > End Sub