Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Add leading zer...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 30449 of 31576
Post > Topic >>

Add leading zero to field

by LFM <cruzenbye@[EMAIL PROTECTED] > Jun 4, 2008 at 07:51 AM

I have a database setup that uses ODBC connections into SQL for read
only views to compare information from multiple sql databases in our
company.   Most of the tables use the Employee ID as the primary key.
The problem is, one database formats the EmpID with leading zeros so
all EmpID's are 5 characters long.  (ie, 00123, 01523) Another
database formats the EmpID as just the number of characters as the
number is (ie, 123, 1523).  When you try to create the relation****p
between the two tables - you can't because of the inconsistency.  (the
fields are formatted as text fields in the original dbs)

I want to create a query that will create a new field to add the
preceeding zeros to the EmpID.  This is where I need assistance.  WHat
is the format code for forcing those preceeding zeros into a field?
 




 2 Posts in Topic:
Add leading zero to field
LFM <cruzenbye@[EMAIL   2008-06-04 07:51:13 
Re: Add leading zero to field
Andrew <andrewmrichard  2008-06-04 09:01:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 23:23:49 CST 2008.