MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 12th, 2004, 09:23 PM
BratCat2 BratCat2 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 20 BratCat2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
DateAdd question

I have a four fields
Field 1:Ship
Field 2: Date
Field 3: Ship2
Field 4: Date2
All our bound to textboxes via ADODC

I have a DateAdd function that is not working.

When the field1:date reaches today's date, i am trying to get the Ship2 value and date2 to move over to Ship and Date fields, kind of resync.

EndTime = DateAdd("s", "30", Adodc1.Recordset.Fields(29))
If Now = EndTime Then

Adodc1.Recordset.Fields(28).Value = Adodc1.Recordset.Fields(17).Value

Thank you for any advice.

Reply With Quote
  #2  
Old March 20th, 2004, 04:16 PM
sypher sypher is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Montreal
Posts: 92 sypher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 10 sec
Reputation Power: 5
try to work with a Store Procedure not ADODC directly(if you can )...I have no any idea what your trying to do here...but if you want me to help you..try to refomula your problem in SQL

Reply With Quote
  #3  
Old March 20th, 2004, 07:27 PM
BratCat2 BratCat2 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 20 BratCat2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
What I am trying to do

I want the data(values) from Event2 to move to Event1
after the date of Event1 has occured.

Reply With Quote
  #4  
Old March 21st, 2004, 03:06 AM
johan degraeve johan degraeve is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 9 johan degraeve User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
make stored procedure

Make a stored procedure and let it run by the sql service manager every x time.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > DateAdd question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway