Results 1 to 3 of 3

Thread: datestamp field?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Posts
    269

    datestamp field?

    Hi,

    I try to insert a record from VB6 to the SQL server 2005 and have a problem when put Now() into the field on the SQL server which defined as datestamp field type.

    Could any one help?

    Thanks!

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: datestamp field?

    Now() returns Date+Time so you may try using Date() function instead or Format(Now, "mm/dd/yyyy")...

    Or ... you can assign default value for that field directly in your database so you wouldn't have to include this field in your Insert statement.

  3. #3
    Frenzied Member
    Join Date
    Jul 2007
    Posts
    1,306

    Re: datestamp field?

    can you please post some code?
    What error have you come accross?

    IIF(Post.Rate > 0 , , )

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