|
-
Oct 23rd, 2002, 04:52 PM
#1
Thread Starter
Fanatic Member
Crystal Reports - ODBC error: Invalid Parameter number
I am connecting to two backends. One backend is a ODBC data source and the second is a Access database on my local PC. When I run the report I get the error Invalid Parameter number. The only parameter fields I have are dates. In my odbc I am connecting to a date\time field and in the Access database the data shows as date only. I do not know if this is the cause or not?
I am using a Subreport (connects to Access database) and the ODBC connects on the Main report...
Any help is greatly appreciated!!!
Johnny
-
Oct 23rd, 2002, 04:59 PM
#2
I copied your post to this new forum. You are the first post
-
Oct 23rd, 2002, 07:26 PM
#3
Addicted Member
and it will never be answered since noone will come here
-
Oct 23rd, 2002, 07:48 PM
#4
Originally posted by glyptar
and it will never be answered since noone will come here
You just proved yourself wrong, but that's no surprise.
-
Oct 24th, 2002, 01:45 AM
#5
What form is your ODBC data source? Is it a table or a query? If it's a query, perhaps it's expecting one or more parameters to be passed to it.
Just a thought. I don't think the date/time fields are causing the problem.
Try creating a new report using the ODBC data source only and see if you get the same errors. This may help narrow down the problem area.
-
Oct 24th, 2002, 02:48 AM
#6
Frenzied Member
Same here don't think the error is caused by the report.
Try to put the query in the query designer, bet you'll get the same error.
Code:
If Question = Incomplete Then
AnswerNextOne
Else
ReplyIfKnown
End If
cu Swatty
-
Oct 24th, 2002, 07:38 AM
#7
Lively Member
How ?
Are you just running the report through crystal or are you calling the report though another application ?
Do, or do not. There is no 'try'.
-
Oct 24th, 2002, 07:39 AM
#8
Thread Starter
Fanatic Member
I am running the report from Crystal reports itself..
-
Oct 24th, 2002, 07:46 AM
#9
Lively Member
Lets see
Have Tried running the main report wihtout the subreport ? Do that so if it works you can narrow it down to where the problem might be. Try and use the same field type parameter as to the field in your database. There could be lots of problems like your linking etc.
Sometimes Crystal doesn't allow to set up a parameter with a date type field in your selection expert. What you need to do then is the following
1. Create a parameter using the Date/Time type.
2. Select the parameter in your selection expert.
3. Now go back and edit the parameter and change the type to just Date.
Hope this helps.
Do, or do not. There is no 'try'.
-
Nov 26th, 2008, 06:36 AM
#10
New Member
Re: Crystal Reports - ODBC error: Invalid Parameter number
here is the help for passing date parameter to crystal reports:
http://vb.net-informations.com/cryst...meter_date.htm
bonave.
-
Nov 26th, 2008, 10:54 AM
#11
Re: Crystal Reports - ODBC error: Invalid Parameter number
You really started from the beginning !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|