Re: Auto fill fields
From: AlCamp (anon_at_anon.net)
Date: 11/11/04
- Next message: Rick B: "Re: Password Protect Forms"
- Previous message: Katrina: "Password Protect Forms"
- In reply to: Brent: "Auto fill fields"
- Next in thread: Brent: "Re: Auto fill fields"
- Reply: Brent: "Re: Auto fill fields"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 11 Nov 2004 17:19:14 -0500
Brent,
So... CompanyNo should be "related" to Program...
In the query behind your combo box, place the CompanyNo in the 2nd
column. Then, when a user selects a Program from the combo (using the combo
AfterUpdate event), run this code...
[Company] = YourComboName.Column(1)
Combo columns are numbered 0,1,2, etc.. so the 2nd column with the
ComanyNo is .column(1).
hth
Al Camp
"Brent" <Brent@discussions.microsoft.com> wrote in message
news:802F85FB-2575-44DF-A93F-A01D190E1026@microsoft.com...
>I need a textbox to auto fill based on what is selected in a combo box. My
> combo box is called Program and my textbox is called Company. Each
> Program
> has a specific company number. When a program is selected in the combo
> box I
> need the company text box to auto fill with its related company number. I
> have read the other posts and still cant get it to work. It would be the
> same to me if I could do this in the table instead of on the form. Either
> way, I just need the company number to end up in the table and don't want
> to
> have to enter it over and over when I am already entering Programs.
> Thanks
> in advance for any help.
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.791 / Virus Database: 535 - Release Date: 11/8/2004
- Next message: Rick B: "Re: Password Protect Forms"
- Previous message: Katrina: "Password Protect Forms"
- In reply to: Brent: "Auto fill fields"
- Next in thread: Brent: "Re: Auto fill fields"
- Reply: Brent: "Re: Auto fill fields"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|