Re: List Box to Open Form



> What I want to be able to do is click
> on one of the jobs in the list box and have it open the form for that
> specific job number?

do you mean "open *another* form" for the specific job number? if so, you
can run code from the listbox control's Click event or AfterUpdate event to
open the form with a WHERE clause, something along the lines of

DoCmd.OpenForm "FormName", , , "JobNumber = " _
& Me!ListBoxName

if the job number is a Text field, rather than a Number field, the syntax
would be

DoCmd.OpenForm "FormName", , , "JobNumber = '" _
& Me!ListBoxName & "'"

in either case, the assumption is that the job number field is the bound
column in the listbox control.

hth


"Pam" <pamnospam@xxxxxxxxxxxxxxxx> wrote in message
news:eeEBu9THGHA.1728@xxxxxxxxxxxxxxxxxxxxxxx
> I have a combo box and a list box on a form. The combo box lists tech
names
> from a tech list table. The list box lists jobs related to each tech as
> they are selected in the combo box. What I want to be able to do is click
> on one of the jobs in the list box and have it open the form for that
> specific job number?
> Any help is greatly appreciated!!
> Thanks,
> Pam
>
>


.



Relevant Pages

  • Re: AMP TECHs NON-AGA
    ... ONT Dan Santoni ... it's some of the tech registry from Weber VST. ... Internet lists of techs, usually voluntary, ...
    (alt.guitar.amps)
  • Re: AMP TECHs NON-AGA
    ... ONT Dan Santoni ... ONT Mark Seed Waterdown, Ontario Canada. ... it's some of the tech registry from Weber VST. ... Internet lists of techs, usually voluntary, ...
    (alt.guitar.amps)
  • Re: Pumping Gas in Oregon
    ... Sure, every once in a blue moon a moderator, with moderator hat off, ... ago and started censoring ... One thing I've noticed in tech forums or lists is that there are always ...
    (Debian-User)
  • Re: List Box to Open Form
    ... fGeneralInfo opens with job info. ... > can run code from the listbox control's Click event or AfterUpdate event ... >> from a tech list table. ... The list box lists jobs related to each tech as ...
    (microsoft.public.access.forms)
  • Re: Are Comic Books necessarily bad sources for Film material?
    ... just turned into lists of lists. ... said tech into reach of a nominal consumer. ... or deploying computers. ...
    (rec.arts.movies.current-films)

Loading