PC Review


Reply
Thread Tools Rate Thread

Auto Generate text field

 
 
=?Utf-8?B?TGlzYQ==?=
Guest
Posts: n/a
 
      26th Oct 2007
I have a from that users can inout ingredients for recipes. I want the user
to pick an ingredient from a drop down(which is already working). I also have
a field that has an item number. I want the item number to auto generate base
on the ingredient selected from the drop down.

--
Lisa S.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TGFuY2U=?=
Guest
Posts: n/a
 
      26th Oct 2007
You have an item number field already and you want to generate another one?
Also, if a new item number is generated every time a user selects an
ingredient it's going to make that item number field useless.

Or is your question how to populate a textbox with the already assigned item
number for the ingredient selected?

"Lisa" wrote:

> I have a from that users can inout ingredients for recipes. I want the user
> to pick an ingredient from a drop down(which is already working). I also have
> a field that has an item number. I want the item number to auto generate base
> on the ingredient selected from the drop down.
>
> --
> Lisa S.

 
Reply With Quote
 
=?Utf-8?B?TGlzYQ==?=
Guest
Posts: n/a
 
      26th Oct 2007
I have all my ingredients in a table with 3 fields auto number, ingredients
and item number.
On the form I want the user to select an ingredient and the item number auto
populates itself. for example. in the table auto number 2 is bacon with an
item number 9999.
on the form if the user selects bacon in the text field for item number 9999
will auto insert itself
--
Lisa S.


"Lance" wrote:

> You have an item number field already and you want to generate another one?
> Also, if a new item number is generated every time a user selects an
> ingredient it's going to make that item number field useless.
>
> Or is your question how to populate a textbox with the already assigned item
> number for the ingredient selected?
>
> "Lisa" wrote:
>
> > I have a from that users can inout ingredients for recipes. I want the user
> > to pick an ingredient from a drop down(which is already working). I also have
> > a field that has an item number. I want the item number to auto generate base
> > on the ingredient selected from the drop down.
> >
> > --
> > Lisa S.

 
Reply With Quote
 
=?Utf-8?B?TGFuY2U=?=
Guest
Posts: n/a
 
      26th Oct 2007
OK, that makes more sense.

All you need to do is when you pick what data to show in your combobox,
include both the ingredient number and the ingredient name. You can hide the
number by shrinking it's field width to 0.

Then make the control source of your text box
=<YOUR_COMBO_BOX_NAME>.column(#) where # is the column number of your item
number from the combo box. If you put it in first it will be column(0) if
you put it in second it will be column(1).


"Lisa" wrote:

> I have all my ingredients in a table with 3 fields auto number, ingredients
> and item number.
> On the form I want the user to select an ingredient and the item number auto
> populates itself. for example. in the table auto number 2 is bacon with an
> item number 9999.
> on the form if the user selects bacon in the text field for item number 9999
> will auto insert itself
> --
> Lisa S.
>
>
> "Lance" wrote:
>
> > You have an item number field already and you want to generate another one?
> > Also, if a new item number is generated every time a user selects an
> > ingredient it's going to make that item number field useless.
> >
> > Or is your question how to populate a textbox with the already assigned item
> > number for the ingredient selected?
> >
> > "Lisa" wrote:
> >
> > > I have a from that users can inout ingredients for recipes. I want the user
> > > to pick an ingredient from a drop down(which is already working). I also have
> > > a field that has an item number. I want the item number to auto generate base
> > > on the ingredient selected from the drop down.
> > >
> > > --
> > > Lisa S.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Generate Primary Field Value mc2882 Microsoft Access 5 29th Sep 2009 05:21 AM
Auto-Generate File Name with Field Content... Chris Smith Microsoft Access Macros 1 3rd Dec 2008 10:38 PM
Auto-generate hyperlinks to external pdf files using data in a separate field sandrakhoo Microsoft Access External Data 1 19th Mar 2007 05:59 AM
Is It Possible To Generate An Auto-Incrementing Field? mcl Microsoft Access Queries 3 3rd Oct 2006 09:52 PM
xsd definition to auto-generate a key field timnels@gmail.com Microsoft ADO .NET 0 20th Feb 2006 03:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:35 PM.