CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2009
    Posts
    3

    Select Query problem

    Hi all, I am new to this site...
    I have a console application written in C# which insert one table info to another table of an access database. There is a date table in format(4/30/09) which I like to insert into another table with the format 4/30/09 03:26:PM. Can I do this in a single query... here is my query

    Insert INTO trcheck01(M_CDATE,M_CHKAMT,M_CUSTNO,M_CHKNO,M_CKHCUST,m_cfile,M_CFDATE,lngSequence) Select M_DATE,m_amt,M_CUSTNO,M_CHKNO,M_DRACTNO,m_file,M_DATE,lngSequence FROM trtrans99";

  2. #2
    Join Date
    Dec 2005
    Location
    Waterloo ON
    Posts
    545

    Re: Select Query problem

    If data value is not changed, don't care the format. Format is only for display. I think your select query is good enough.
    The difficulty is that you have no idea how difficult it is.

    .Net 3.5/VS 2008

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured