PC Review


Reply
Thread Tools Rate Thread

Convert a Number data type to a Text data type

 
 
TKM
Guest
Posts: n/a
 
      5th Nov 2008
I have my query set up to place a number instaed of the actual selection to
go into my table. This is based on a lookup from another table. I.E. You
select a selection from a combo box and it places a number not the text into
my table. How do I access the actual text in a seprate query so I can use the
info in my report?
 
Reply With Quote
 
 
 
 
KARL DEWEY
Guest
Posts: n/a
 
      5th Nov 2008
Join that lookup table in your query and include the text field.
--
KARL DEWEY
Build a little - Test a little


"TKM" wrote:

> I have my query set up to place a number instaed of the actual selection to
> go into my table. This is based on a lookup from another table. I.E. You
> select a selection from a combo box and it places a number not the text into
> my table. How do I access the actual text in a seprate query so I can use the
> info in my report?

 
Reply With Quote
 
Lord Kelvan
Guest
Posts: n/a
 
      6th Nov 2008
first you should use lookup tables

to access it in a query you need to have both tables active in the
query and then select the text field.

Regards
Kelvan
 
Reply With Quote
 
TKM
Guest
Posts: n/a
 
      6th Nov 2008
I have it in two seprate tables (lookup) the relationship is one to many one
seller to many coins. I still get the number instaed of the text. is the join
wwrong or? I have both fields in the query. Should be simple but?

"Lord Kelvan" wrote:

> first you should use lookup tables
>
> to access it in a query you need to have both tables active in the
> query and then select the text field.
>
> Regards
> Kelvan
>

 
Reply With Quote
 
KARL DEWEY
Guest
Posts: n/a
 
      6th Nov 2008
Post the SQL of your query. Open in design view, click on VIEW - SQL View,
highlight all, copy, and paste in a post.
--
KARL DEWEY
Build a little - Test a little


"TKM" wrote:

> I have it in two seprate tables (lookup) the relationship is one to many one
> seller to many coins. I still get the number instaed of the text. is the join
> wwrong or? I have both fields in the query. Should be simple but?
>
> "Lord Kelvan" wrote:
>
> > first you should use lookup tables
> >
> > to access it in a query you need to have both tables active in the
> > query and then select the text field.
> >
> > Regards
> > Kelvan
> >

 
Reply With Quote
 
TKM
Guest
Posts: n/a
 
      6th Nov 2008
where is it in 2007

"KARL DEWEY" wrote:

> Post the SQL of your query. Open in design view, click on VIEW - SQL View,
> highlight all, copy, and paste in a post.
> --
> KARL DEWEY
> Build a little - Test a little
>
>
> "TKM" wrote:
>
> > I have it in two seprate tables (lookup) the relationship is one to many one
> > seller to many coins. I still get the number instaed of the text. is the join
> > wwrong or? I have both fields in the query. Should be simple but?
> >
> > "Lord Kelvan" wrote:
> >
> > > first you should use lookup tables
> > >
> > > to access it in a query you need to have both tables active in the
> > > query and then select the text field.
> > >
> > > Regards
> > > Kelvan
> > >

 
Reply With Quote
 
TKM
Guest
Posts: n/a
 
      6th Nov 2008
SELECT tblCoinInfo.InfoID, tblCoinInfo.CoinType, tblCoinInfo.MM,
tblMM.[MM(MintMark)]
FROM tblMM INNER JOIN tblCoinInfo ON tblMM.MMID = tblCoinInfo.MM;


"KARL DEWEY" wrote:

> Post the SQL of your query. Open in design view, click on VIEW - SQL View,
> highlight all, copy, and paste in a post.
> --
> KARL DEWEY
> Build a little - Test a little
>
>
> "TKM" wrote:
>
> > I have it in two seprate tables (lookup) the relationship is one to many one
> > seller to many coins. I still get the number instaed of the text. is the join
> > wwrong or? I have both fields in the query. Should be simple but?
> >
> > "Lord Kelvan" wrote:
> >
> > > first you should use lookup tables
> > >
> > > to access it in a query you need to have both tables active in the
> > > query and then select the text field.
> > >
> > > Regards
> > > Kelvan
> > >

 
Reply With Quote
 
KARL DEWEY
Guest
Posts: n/a
 
      6th Nov 2008
You did not say which field was the lookup so I assume it should be
[MM(MintMark)]
Try this --
SELECT tblCoinInfo.InfoID, tblCoinInfo.CoinType, tblMM.[MM(MintMark)]
FROM tblCoinInfo LEFT JOIN tblMM ON tblMM.MMID = tblCoinInfo.MM;

--
KARL DEWEY
Build a little - Test a little


"TKM" wrote:

> SELECT tblCoinInfo.InfoID, tblCoinInfo.CoinType, tblCoinInfo.MM,
> tblMM.[MM(MintMark)]
> FROM tblMM INNER JOIN tblCoinInfo ON tblMM.MMID = tblCoinInfo.MM;
>
>
> "KARL DEWEY" wrote:
>
> > Post the SQL of your query. Open in design view, click on VIEW - SQL View,
> > highlight all, copy, and paste in a post.
> > --
> > KARL DEWEY
> > Build a little - Test a little
> >
> >
> > "TKM" wrote:
> >
> > > I have it in two seprate tables (lookup) the relationship is one to many one
> > > seller to many coins. I still get the number instaed of the text. is the join
> > > wwrong or? I have both fields in the query. Should be simple but?
> > >
> > > "Lord Kelvan" wrote:
> > >
> > > > first you should use lookup tables
> > > >
> > > > to access it in a query you need to have both tables active in the
> > > > query and then select the text field.
> > > >
> > > > Regards
> > > > Kelvan
> > > >

 
Reply With Quote
 
TKM
Guest
Posts: n/a
 
      6th Nov 2008
karl,

You are right about the lookup table. However I still get a mismatch in my
expression. I know its not me or you. This application (07) was put ontop of
a test environment and I have been getting crazy responses ever sense it was
installed. I am done until I get a new laptiop. Thanks so much for your help!

"KARL DEWEY" wrote:

> You did not say which field was the lookup so I assume it should be
> [MM(MintMark)]
> Try this --
> SELECT tblCoinInfo.InfoID, tblCoinInfo.CoinType, tblMM.[MM(MintMark)]
> FROM tblCoinInfo LEFT JOIN tblMM ON tblMM.MMID = tblCoinInfo.MM;
>
> --
> KARL DEWEY
> Build a little - Test a little
>
>
> "TKM" wrote:
>
> > SELECT tblCoinInfo.InfoID, tblCoinInfo.CoinType, tblCoinInfo.MM,
> > tblMM.[MM(MintMark)]
> > FROM tblMM INNER JOIN tblCoinInfo ON tblMM.MMID = tblCoinInfo.MM;
> >
> >
> > "KARL DEWEY" wrote:
> >
> > > Post the SQL of your query. Open in design view, click on VIEW - SQL View,
> > > highlight all, copy, and paste in a post.
> > > --
> > > KARL DEWEY
> > > Build a little - Test a little
> > >
> > >
> > > "TKM" wrote:
> > >
> > > > I have it in two seprate tables (lookup) the relationship is one to many one
> > > > seller to many coins. I still get the number instaed of the text. is the join
> > > > wwrong or? I have both fields in the query. Should be simple but?
> > > >
> > > > "Lord Kelvan" wrote:
> > > >
> > > > > first you should use lookup tables
> > > > >
> > > > > to access it in a query you need to have both tables active in the
> > > > > query and then select the text field.
> > > > >
> > > > > Regards
> > > > > Kelvan
> > > > >

 
Reply With Quote
 
KARL DEWEY
Guest
Posts: n/a
 
      6th Nov 2008
Check the DataType of tblMM.MMID and tblCoinInfo.MM. They must match such
as autonumber and long integer or single and single.
--
KARL DEWEY
Build a little - Test a little


"TKM" wrote:

> karl,
>
> You are right about the lookup table. However I still get a mismatch in my
> expression. I know its not me or you. This application (07) was put ontop of
> a test environment and I have been getting crazy responses ever sense it was
> installed. I am done until I get a new laptiop. Thanks so much for your help!
>
> "KARL DEWEY" wrote:
>
> > You did not say which field was the lookup so I assume it should be
> > [MM(MintMark)]
> > Try this --
> > SELECT tblCoinInfo.InfoID, tblCoinInfo.CoinType, tblMM.[MM(MintMark)]
> > FROM tblCoinInfo LEFT JOIN tblMM ON tblMM.MMID = tblCoinInfo.MM;
> >
> > --
> > KARL DEWEY
> > Build a little - Test a little
> >
> >
> > "TKM" wrote:
> >
> > > SELECT tblCoinInfo.InfoID, tblCoinInfo.CoinType, tblCoinInfo.MM,
> > > tblMM.[MM(MintMark)]
> > > FROM tblMM INNER JOIN tblCoinInfo ON tblMM.MMID = tblCoinInfo.MM;
> > >
> > >
> > > "KARL DEWEY" wrote:
> > >
> > > > Post the SQL of your query. Open in design view, click on VIEW - SQL View,
> > > > highlight all, copy, and paste in a post.
> > > > --
> > > > KARL DEWEY
> > > > Build a little - Test a little
> > > >
> > > >
> > > > "TKM" wrote:
> > > >
> > > > > I have it in two seprate tables (lookup) the relationship is one to many one
> > > > > seller to many coins. I still get the number instaed of the text. is the join
> > > > > wwrong or? I have both fields in the query. Should be simple but?
> > > > >
> > > > > "Lord Kelvan" wrote:
> > > > >
> > > > > > first you should use lookup tables
> > > > > >
> > > > > > to access it in a query you need to have both tables active in the
> > > > > > query and then select the text field.
> > > > > >
> > > > > > Regards
> > > > > > Kelvan
> > > > > >

 
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
Re: Convert data type text into number Douglas J. Steele Microsoft Access VBA Modules 0 16th Apr 2010 03:14 PM
Convert a Number data type to Text using a query dfredriksson Microsoft Access Queries 3 31st Jul 2008 08:42 PM
Convert data type of cells to Text,Number,Date and Time =?Utf-8?B?S2V2aW4=?= Microsoft Excel Worksheet Functions 1 31st Dec 2004 12:57 PM
Convert data of cells to any type: Number, Date&Time, Text =?Utf-8?B?S2V2aW4=?= Microsoft Excel Misc 0 30th Dec 2004 06:55 AM
How to change a number or text data type to autonumber and keep the table data? Julian Ganoudis Microsoft Access Forms 2 12th Jan 2004 08:47 PM


Features
 

Advertising
 

Newsgroups
 


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