Go Back   Rhinocerus > Newsgroup > Newsgroup comp.databases.ms-access

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-02-2006, 11:10 PM
colleen1980@gmail.com
Guest
 
Posts: n/a
Default Insert zero before number(as a first character) of type text

Hi:
Is there any way by which i insert 0 before the value by query. I have
a table contains 10,000 records and because of some reason i need to
move 0 before number of field Tech_ID. Type of field is Text.

Thank You.

Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 09-02-2006, 11:47 PM
John Welch
Guest
 
Posts: n/a
Default Re: Insert zero before number(as a first character) of type text

Do you want to permmanently change the field values? If so you can build an
update query in the query builder (go to query menu and choose update
query). Choose the field Tech_ID and set the "update to" field to be: "0" &
[Tech_ID].
If you don't want the changes to be permanent, you could just make a select
query with a field called something like "modifiedTech_ID" and define it as
"0" & [Tech_ID]. Then you could use this query in place of the table.
-John


<colleen1980@gmail.com> wrote in message
news:1157238609.648471.44670@m73g2000cwd.googlegro ups.com...
> Hi:
> Is there any way by which i insert 0 before the value by query. I have
> a table contains 10,000 records and because of some reason i need to
> move 0 before number of field Tech_ID. Type of field is Text.
>
> Thank You.
>



Reply With Quote
  #3 (permalink)  
Old 09-03-2006, 12:00 AM
salad
Guest
 
Posts: n/a
Default Re: Insert zero before number(as a first character) of type text

colleen1980@gmail.com wrote:
> Hi:
> Is there any way by which i insert 0 before the value by query. I have
> a table contains 10,000 records and because of some reason i need to
> move 0 before number of field Tech_ID. Type of field is Text.
>
> Thank You.
>

In the querybuilder enter something like
NewTechID : "0" & TechID
Reply With Quote
 
Reply

Thread Tools
Display Modes

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 Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: SAS term: character string, text expression Paul Dorfman Newsgroup comp.soft-sys.sas 0 06-09-2007 10:19 PM
Re: SAS term: character string, text expression Ian Whitlock Newsgroup comp.soft-sys.sas 0 06-09-2007 04:08 PM
LayPerson's-Macro 101: Re: Passing by reference Terjeson, Mark Newsgroup comp.soft-sys.sas 0 12-13-2005 04:33 PM
Re: Type I-IV Sum of squares with empty cells baogong jiang Newsgroup comp.soft-sys.sas 0 05-19-2005 03:35 PM



All times are GMT. The time now is 09:06 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.