Welcome to SPN

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

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

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
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page