Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / May 2007

Tip: Looking for answers? Try searching our database.

Convert between numbers and labels

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chacho - 29 May 2007 19:10 GMT
Alright, here's the setup.
I have an index list (hereafter referred to as INDEX), which is a table with
one column of (unique) numbers, and another column of corresponding labels. I
have another table, hereafter referred to as INPUT, with a bunch of numbers.
What I want to do is have Access take the INPUT, and create a table (or
query, whatever) that will convert these numbers into their corresponding
lables from the INDEX. (I also need to be able to convert labels into
corresponding numbers, the exact opposite process.)
I have already tried using a query, and setting up a relationship between
the INPUT numbers and the INDEX numbers, and having the query output the
labels. The problem is, if a number in the INPUT is not listed in the INDEX,
then the entry just disappears from the query altogether. I would prefer that
the "unregistered" numbers simply stay as numbers in the column. This also
applies when doing the reverse: if the INPUT is a column of words instead,
and there is a word that is not in the INDEX, then just leave the word,
rather than converting it to a number.
All help is greatly appreciated!
Jerry Whittle - 29 May 2007 20:04 GMT
You have an inner join between the two tables. In that case both tables need
a matching record for a query to return a record.

In query design view double-click on the line between the two tables until a
dialog box appears. Try the second option for the join (left join). If that
doesn't work, try the third option (right join).
Signature

Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

> Alright, here's the setup.
> I have an index list (hereafter referred to as INDEX), which is a table with
[quoted text clipped - 13 lines]
> rather than converting it to a number.
> All help is greatly appreciated!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.