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 / Modules / DAO / VBA / March 2005

Tip: Looking for answers? Try searching our database.

Losing data from ODBC

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TJT - 17 Mar 2005 22:29 GMT
We are backfeeding data from a fedex application to a access table and we are
having a problem where the value '0123456' will be sent as '123456' I have
worked with fedex to try and accomplish fixing this problem on their end, but
with zero success.  I need to write a query that will search my table and if
the value does not have a 0 in front of it that it will add one.  any help is
greatly appreciated.
Lee-Anne Waters - 18 Mar 2005 00:53 GMT
Hi,

you could try this.

UPDATE Table1 SET Table1.FedexNum = "0" & [Table1]![FedexNum]
WHERE (((Table1.FedexNum) Not Like "0*"));

it would only update those records where a 0 is not present and you couold
run it at the time of import.

hope this helps
Lee-Anne
Chris Nebinger - 18 Mar 2005 21:48 GMT
Or, you could use something like:

right("0000000" & FedExNum,7)

That way it will append leading zeros even for 2 digit fedex numbers.

Chris Nebinger
 
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



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