Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 9th, 2003, 01:32 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default rs.find - returns error3001

Need some help here please.

I'm having a problem with my find statement.

invposrs.Find ("[ORDERNO]=" & rs!ID)

when I run where ORDERNO = 27503 - No problems

when I run where ORDERNO = R9265 - error 3001 Arguments are of wrong type, are out of acceptable range, or are in conflict with one another.

I would really appreciate some assistance. Thanks.



 
Old October 10th, 2003, 04:28 AM
Authorized User
 
Join Date: May 2003
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default

remove R from the order numder, which you are passing as the parameter.

Quote:
quote:Originally posted by doreenjj
 Need some help here please.

I'm having a problem with my find statement.

invposrs.Find ("[ORDERNO]=" & rs!ID)

when I run where ORDERNO = 27503 - No problems

when I run where ORDERNO = R9265 - error 3001 Arguments are of wrong type, are out of acceptable range, or are in conflict with one another.

I would really appreciate some assistance. Thanks.



Deepesh Jain
VB,VBA & .NET Specialist
Wiley Support Team
 
Old November 20th, 2003, 07:43 PM
Registered User
 
Join Date: Nov 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by doreenjj
 Need some help here please.

I'm having a problem with my find statement.

invposrs.Find ("[ORDERNO]=" & rs!ID)

when I run where ORDERNO = 27503 - No problems

when I run where ORDERNO = R9265 - error 3001 Arguments are of wrong type, are out of acceptable range, or are in conflict with one another.

I would really appreciate some assistance. Thanks.



check the type of orderno and rs are string.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Left$ returns Can't Find Project or Library Ron Howerton Access VBA 7 March 22nd, 2006 11:22 AM
rs.eof returns false hastikeyvan Dreamweaver (all versions) 3 February 4th, 2006 11:08 AM
Open Word Doc from Access - find, find next save donaldmaloney Access VBA 1 May 25th, 2005 11:09 AM
RS Manager and RS Server on 2 different computers Choose File BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 July 22nd, 2004 10:56 AM
Create a find and a find and replace in VB.NET snowy0 VB How-To 0 January 26th, 2004 07:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.