Re: Please Help...Using the column function within a query field
- From: newsneakers <newsneakers@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 10:22:06 -0800
Oh boy... After reading that article.. no wonder why.........
That's exactly the merry-go-round I've been dealing with. So what do you
suggest? Just get rid of the lookup column in the original table? and put the
data? It seems inappropriate to duplicate the same data in two separate
tables (ProjEng in the Projects table -- and the same names in the AssignedTo
Table).
Do you have any other suggestions? I'm getting confused here.
Thanks in advance.
Sarah
"John Vinson" wrote:
On Thu, 30 Mar 2006 19:12:02 -0800, newsneakers.
<newsneakers@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I think I am trying to do something similar. I'm getting all mixed up with
the form controls. And trying to get the value of a field instead of the
underlying number -
The value of the field, as stored in your Table, *IS* the number.
That simple fact is concealed from your view by Microsoft's
misdesigned, misleading, and all but useless Lookup Wizard misfeature.
Your table CONTAINS the number; the lookup field connects that number
to a text value *in a different table*, the Lookup table.
See http://www.mvps.org/access/lookupfields.htm for a critique of the
Lookup Field type.
Basically I have this:
A table called Projects with seven columns (ProjName, City, ProjEng,
ProjPhase) etc. In the table, I have assigned all the data types as "text",
except ProjEng - which I created as a number - because it's taking that data
(that populates the Projects.ProjEng field) from an Contacts table.
Correction; it's not "taking" that data from a contacts table. It's
*linking to* the data in the contacts table. The text exists in the
Contacts table, and only in the Contacts table.
Everything worked just fine thus far.
Then I added a Projects Form with a link from Issues Table, to edit the
Projects.
What sort of "link"?
When all of the fields in the Projects Form were text-only, everything was
fine. However I changed the fields on the form to combo boxes in order to
limit the selection to a list (to prevent typographical errors in the
Projects Table, hoping to prevent duplicate records because of typos.
Again, all of the drop down lists (on the Projects Form) work fine (pulling
the data from the Projects Table to the combo drop down list- and -also
updating the selection back to the Projects Table according to the selection.
However, since the ProjEng column is a number-type in the Projects Table it
is showing as a number in the drop down list - instead of the names.
Change the ColumnWidths property of this combo box so that the column
width of the number field is 0. E.g. if your combo is based on a query
selecting the ProjEng ID and the Contacts LastName, you can use a
ColumnWidths property of
0;1
to conceal the ID and display the name.
John W. Vinson[MVP]
- Follow-Ups:
- Re: Please Help...Using the column function within a query field
- From: John Vinson
- Re: Please Help...Using the column function within a query field
- References:
- Re: Please Help...Using the column function within a query field
- From: John Vinson
- Re: Please Help...Using the column function within a query field
- Prev by Date: Re: Why won't my query to show only 2005 data work?
- Next by Date: Re: DataGrid Cotrol IN Access 2003
- Previous by thread: Re: Please Help...Using the column function within a query field
- Next by thread: Re: Please Help...Using the column function within a query field
- Index(es):
Relevant Pages
|