G
Guest
I have a form [frm_NewQuote] which assignes [OrderInfoID]. I have another
form [frm_QuoteDetails] that opens with [frm_NewQuote]. The [OrderInfoID]
automatically updates into [frm_QuoteDetails]. Now in [frm_QuoteDetails] I
have a combobox [Combo40]. What I want to do is on click for [Combo40] I want
to run a query [qryLU_armrest]. the Query consists of [LUID] which is an
autonumber, and [ModelID] and [ArmrestID] which are both numbers that come
from other tables that assign these numbers. I want [qryLU_Armrest] to search
based on the [ModelID] in [frm_NewQuote].
So when I click the combobox on my subform I want it to run a query based on
the modelID from the main form so that my options are only relevant to this
specific Model number.
I can make the query run on click, however my syntax in my query is stumping
me a little.
Under [ModelID] in my query, I tried entering =[frm_NewQuote].[ModelID] but
when I open my form all together it tries to run the query and it pulls up a
promt box asking me for the value of ModelID.
Any suggestions.
Thanks in Advance.
Travis
form [frm_QuoteDetails] that opens with [frm_NewQuote]. The [OrderInfoID]
automatically updates into [frm_QuoteDetails]. Now in [frm_QuoteDetails] I
have a combobox [Combo40]. What I want to do is on click for [Combo40] I want
to run a query [qryLU_armrest]. the Query consists of [LUID] which is an
autonumber, and [ModelID] and [ArmrestID] which are both numbers that come
from other tables that assign these numbers. I want [qryLU_Armrest] to search
based on the [ModelID] in [frm_NewQuote].
So when I click the combobox on my subform I want it to run a query based on
the modelID from the main form so that my options are only relevant to this
specific Model number.
I can make the query run on click, however my syntax in my query is stumping
me a little.
Under [ModelID] in my query, I tried entering =[frm_NewQuote].[ModelID] but
when I open my form all together it tries to run the query and it pulls up a
promt box asking me for the value of ModelID.
Any suggestions.
Thanks in Advance.
Travis