Connecting Tech Pros Worldwide Help | Site Map

Insert zero before number(as a first character) of type text

 
LinkBack Thread Tools Search this Thread
  #1  
Old September 2nd, 2006, 10:55 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.


  #2  
Old September 2nd, 2006, 11:45 PM
salad
Guest
 
Posts: n/a
Default Re: Insert zero before number(as a first character) of type text

colleen1980@gmail.com wrote:
Quote:
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
  #3  
Old September 3rd, 2006, 06:55 AM
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.comwrote in message
news:1157238609.648471.44670@m73g2000cwd.googlegro ups.com...
Quote:
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.
>

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.