Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 7th, 2005, 01:01 PM
dtwilder dtwilder is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 5 dtwilder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 14 m 57 sec
Reputation Power: 0
problem selecting date

I trying to goto a record matching a couple criteria, one of them the date but I keep getting this error:

"Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another."

I'm working with an .adp file. This is what I have:

Dim lrs As New ADODB.Recordset
Set lrs = Me.Recordset.Clone

lrs.Find "[PondName] = 'Yuch-001' And [SampleDate] = #8/3/2002#"

Me.Bookmark = lrs.Bookmark


I'll replace the values 'Yuch-001' and the date with values from a combo box. This all works fine in Access. Any help is appreciated.

Thanks,
Doug in Fairbanks

Reply With Quote
  #2  
Old October 20th, 2005, 01:27 PM
dtwilder dtwilder is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 5 dtwilder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 14 m 57 sec
Reputation Power: 0
no help

I'm a little surprised I didn't get any responses to this question. I got a bunch from one guy over at DevX.com on this topic. But the problem is still unresolved....

Reply With Quote
  #3  
Old November 16th, 2005, 02:34 AM
BBJo BBJo is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 21 BBJo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 10 m 15 sec
Reputation Power: 0
Since this is posted on the SQL Server part but you are working with .adp file I don't know if this would be relevant. But you don't use # # sign around dates in SQL Server. SQL Server uses ' '

lrs.Find "[PondName] = 'Yuch-001' And [SampleDate] = '8/3/2002' "

But since I am not familiar with .adp files I don't know if this is useful.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > problem selecting date


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 1 hosted by Hostway
Stay green...Green IT