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 / Queries / April 2008

Tip: Looking for answers? Try searching our database.

Changing Data Type of Column in Query.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bird_e_boy - 23 Apr 2008 16:23 GMT
Hi,

I have a table (Table 1) with three columns of the following type:

Example Table1:

Col1 - Text
Col2 - DateTime
Col3 - Memo

I have a query (Query1) that pulls information on those three columns in
Table1 and performs a function on Col3.  The data within Col3 is greater than
255 which is the reason for choosing this data type for this column in
Table1.  The function performed on Col3 removes carriage returns from the
data and replaces them with " ", it then returns this string (data returned
retains its original length).  The problem is that Access converts the data
type of Col3 into a'Text' data type which has a maximum size of 255 therefore
truncating the data returned from the function.  Is there any way to ensure
the column created in the query to recieve the results of the function is set
to memo instead of being set to 'TEXT'.

Example of Query1:

SELECT Col1, Col2, replaceVal(Col3)
FROM Table1
John Spencer - 24 Apr 2008 17:26 GMT
I don't see this behavior on my sample query.

Are you trying to use a maketable query and populate that with the results?

I am using Access 2003 SP1 for the testing.

John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County

> Hi,
>
[quoted text clipped - 21 lines]
> SELECT Col1, Col2, replaceVal(Col3)
> FROM Table1
 
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



©2009 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.