Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

File Date appending

Discussion in 'Information Technology' started by Justin, Nov 1, 2005.

  1. Justin

    Justin
    Expand Collapse
    Guest

    Wondering if someone can help me. I have these files that uploades onto this
    database i created. Now, when it upload it takes the files name of the file
    and insert it on the table.
    The file comes like "CDI ERROR FILE xx-xx-xxxx", where the x is the
    month-date-year. I need to have take that file name and when it append only
    have the month-date-year. Please assist. Thanks
     
  2. Loading...

    Similar Threads Forum Date
    Sikh News Profiled US Sikh Throws 'Know Me' Challenge Breaking News Jul 25, 2016
    Hard Talk Sikh Musician Racially Profiled At US Restaurant Hard Talk Jul 6, 2016
    India Patna man files defamation suit against son for inter-caste marriage Breaking News Jan 6, 2014
    USA Federal hate crime indictment filed in 'savage' attack on cab driver Breaking News Apr 4, 2013
    Malaysia Bank Islam Files Police Reports Against Chief Economist Breaking News Jan 23, 2013

  3. Justin

    Justin
    Expand Collapse
    Guest

    Wait, I am not following
    the table that i uploaded the file to, also has the file name
    Now i created an append query to clean up the data. I want the append query
    to have it take teh file name and make it into Date.
    I tried to insert that function on the append query, but it didn't work.
    Maybe Im doing somethign wrong. Please help

    "Ofer" wrote:

    > If the CDI ERROR FILE is fixed, you can use the replace function to remove it
    >
    > Select Trim(Replace(FieldName,"CDI ERROR FILE","")) as DateField From
    > TableName
    > --
    > If I answered your question, please mark it as an answer. That way, it will
    > stay saved for a longer time, so other can benifit from it.
    >
    > Good luck
    >
    >
    >
    > "Justin" wrote:
    >
    > > Wondering if someone can help me. I have these files that uploades onto this
    > > database i created. Now, when it upload it takes the files name of the file
    > > and insert it on the table.
    > > The file comes like "CDI ERROR FILE xx-xx-xxxx", where the x is the
    > > month-date-year. I need to have take that file name and when it append only
    > > have the month-date-year. Please assist. Thanks
     
  4. Ron Hinds

    Ron Hinds
    Expand Collapse
    Guest

    UPDATE table_name SET column_name = Right([column_name], 10)

    Assuming the date format is always "xx-xx-xxxx"

    "Justin" <Justin@discussions.microsoft.com> wrote in message
    news:C4F438B2-C7AB-41E2-BD66-1BAB235F2582@microsoft.com...
    > Wait, I am not following
    > the table that i uploaded the file to, also has the file name
    > Now i created an append query to clean up the data. I want the append

    query
    > to have it take teh file name and make it into Date.
    > I tried to insert that function on the append query, but it didn't work.
    > Maybe Im doing somethign wrong. Please help
    >
    > "Ofer" wrote:
    >
    > > If the CDI ERROR FILE is fixed, you can use the replace function to

    remove it
    > >
    > > Select Trim(Replace(FieldName,"CDI ERROR FILE","")) as DateField From
    > > TableName
    > > --
    > > If I answered your question, please mark it as an answer. That way, it

    will
    > > stay saved for a longer time, so other can benifit from it.
    > >
    > > Good luck
    > >
    > >
    > >
    > > "Justin" wrote:
    > >
    > > > Wondering if someone can help me. I have these files that uploades

    onto this
    > > > database i created. Now, when it upload it takes the files name of the

    file
    > > > and insert it on the table.
    > > > The file comes like "CDI ERROR FILE xx-xx-xxxx", where the x is the
    > > > month-date-year. I need to have take that file name and when it append

    only
    > > > have the month-date-year. Please assist. Thanks
     

Share This Page