Re: auto fill form based on combo-box selection

Tech-Archive recommends: Fix windows errors by optimizing your registry



If I'm understanding your description, you want to be able to display
corresponding values once a selection is made. If the ONLY thing you are
doing is displaying those looked-up values, and are not planning on
(re-)saving them (i.e., the controls are unbound), then you could easily do
that by:
> include the values you will want shown as fields in the query you use to
feed the combo box
> create an AfterUpdate event for the combo box
> in that event, add something like:
Me!txtSprayArea = Me!cboRecipeName.Column(1)
Me!txtGDL_Material = Me!cboRecipeName.Column(2)
...
Check Access HELP on using .Column(n) -- it is zero-based, so you start
counting at "0".

Regards

Jeff Boyce
Microsoft Office/Access MVP


"J" <J@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CA153100-F574-4F83-92E3-B2169FC1DFCD@xxxxxxxxxxxxxxxx
Instead of creating several forms with different default values, I would
like
to "auto-fill" some of the fields based on the value selected on the first
combo-box on the form. The defaults would come from a table. For example
tblSpecs would contain RecipeName, SprayArea, GDL_Material, etc. On my
form
when the user selects RecipeName, the vlaues for SprayArea, GDL_Material,
etc
would auto fill with the corresponding values from the table where
RecipeName=RecipeName. I think this is probably do-able but I don't have
much
coding experience. Help is greatly appreciated.


.



Relevant Pages

  • Re: Displaying only specified values-not using Autofilter
    ... now that you want to make a selection from the "1"s on Sheet 1 and have ... be assigned to Shift A,Shift B, and Shift C. ... I'd like sheet one then to only display those selected items. ...
    (microsoft.public.excel)
  • 26 Suggestions for both Word and Excel
    ... Transpose should have an extra facility to transpose the selected cells ... display begins in the second line and therefore we cannot see row name A, B, ... And more in a single selection at a time, then there will be no problem. ... Identity to any selected Paragraph, line, or any character or criteria. ...
    (microsoft.public.word.docmanagement)
  • Re: Displaying only specified values-not using Autofilter
    ... now that you want to make a selection from the "1"s on Sheet 1 and have ... be assigned to Shift A,Shift B, and Shift C. ... I'd like sheet one then to only display those selected items. ...
    (microsoft.public.excel)
  • Re: Mouse scroll and Combo box...
    ... Rob ... The scroll feature is useful if you are using a continuous form, ... record does not match the selection in the combo-box. ... This will display the warning message when then user changes to a different ...
    (microsoft.public.access.forms)
  • Re: What does Web Viewpoint do better than Viewpt for Event Viewing
    ... > want to see more lines of messages in the primary display. ... Multi level filter settings and selection criteria ... User selected settings are stored in cookies for quicker ... A set of all available Tokens for your selected ...
    (comp.sys.tandem)