473,591 Members | 2,871 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to solve error "the specified value type is different to the current value type"

11 New Member
hi,
i have used sql2000 stored procedure with 2 date parameters to create crystal report 8.5. when i am sending date parameters from vb6 and calling the report, its giving error "the specified value type is different to the current value type"
here is the code:
With CrystalReport1
.Connect = gconConnection
.ReportFileName = App.Path & "\Receipt Reversal.rpt"
.DiscardSavedDa ta = True
.Destination = crptToWindow
.WindowShowExpo rtBtn = True
.WindowAllowDri llDown = True
.StoredProcPara m(0) = "@DateFrom; " & "01/01/2010 00:00:01AM"
.StoredProcPara m(1) = "@DateTo;" & "01/20/2010 11:59:59PM"
.Destination = crptToWindow
.WindowState = crptMaximized
.Action = 1
End With

but its giving error like specified value type is not matching with current value type. i changed date format but still getting same. am using crystal reoprt component in vb6 to call crystal report. any help will be appreciated.
Jun 27 '10 #1
5 4719
vb5prgrmr
305 Recognized Expert Contributor
CR may be expecting the date values to be surrounded by delimeters like access does (#), or sql will accept single ticks (') around a date. See CR's help files on dates to check...



Good Luck
Jun 27 '10 #2
romiverma
11 New Member
hi thks for reply but i tried single quotes also, hash sign also, but still not working. searched on net yet no result. still waiting to get it resolved.
Jun 28 '10 #3
vb5prgrmr
305 Recognized Expert Contributor
Did you check CR's help files? They have examples in the help files...



Good Luck
Jun 28 '10 #4
romiverma
11 New Member
@vb5prgrmr
yup i checked help files also but i didn't get information abt date parameters
Jun 29 '10 #5
vb5prgrmr
305 Recognized Expert Contributor
Hmmm... Well hopefully someone can come along here and set you strait as it has been awhile since I used CR for anything...



Good Luck
Jun 30 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2216
by: dice | last post by:
I have built a .NET based service that uses a number of related 3rd party dlls. If I compile my code into a dll and use this in a test app all is well - however if I compile my code as a service and try to run the service I get the following exception: System.IO.FileNotFoundException: The specified module could not be found. at CES.VendClientInt.VendClient.GetCardTypes(...) at YQ_Epos_server.CodeHandler.start(...) I have tried copying...
2
7900
by: CLEAR-RCIC | last post by:
Hello All, I wrote a .dll that programatically maps two network drives and copies files from one drive to the other. The .dll works fine when using an .exe to call the .dll. When I call the .dll with a Windows Service I get the following error - "The specified network password is not correct". This makes no sense as both the .exe and the Windows Service are both run from my machine. I also specify my domain account/password in the...
3
3890
by: Daniel | last post by:
If my System.IO.StreamWriter Write method throws "The specified network name is no longer available." and I try to Dispose or Close it in the finaly clause the close or dispose method just throws "The specified network name is no longer available." again. how to clean this up? after this the stream writer is stuck connected until i restart my process.
3
12324
by: Big Dave | last post by:
Hello All, I was wondering wether anyone could help me solve what is probably a very easy issue. I keep getting this damn "The administrative limit for this request was exceeded" whenever I try to query my LDAP server. Does anyone have any idea how to fix this. I have tried the pagesize and the sizelimit to no avail. Please help. --- Here is my code below: --- using System;
0
1877
by: LordHog | last post by:
Hello all, I would like to use the new SerialPort class in Visual C++ 2005 Express edition, but I am having problems adding my event handler to the DataReceived event. In the header file I have the method that will handle the event defined as private: void SerialPortReceive_EventHandler( System::Object ^ sender, System::IO::Ports::SerialDataReceivedEventArgs^ e );
0
1561
by: Kevin Buchan | last post by:
I have some code to query Active Directory group membership, based on an LDAP path. This works beautifully in my test exectuable, but when I try to move the class I built into an ASP.Net web project, I get the following error: "The specified domain either does not exist or could not be contacted" The LDAP path I'm using is shown below and I know that it works: "LDAP://CN=BuchanKL,OU=WebDevelopment,DC=troutmansanders,DC=com" I...
1
4161
by: Brad | last post by:
I'm trying to use Active Directory to retrieve information for a user...for display purposes.. I am not using windows authentication or impersonation....I am using a fixed user id and password for initializing the DirectoryEntry object. For example sake our domain name is mydomain.net so the LDAP path I use is LDAP://DC=mydomain,DC=Net Notice I am not specifying a server in the LDAP path which and I would prefer to not use the server...
2
8499
by: omer681 | last post by:
i have IIS 5. When i enter to a .asp page in the server, its not loaded and an error named "The specified module could not be found" is appear, and replace everything other. help please?
12
7427
by: dkurth | last post by:
Hi, I'm running PHP 5.2.3 on Windows 2000 Server with IIS 5. I'm trying to get cUrl working, so in my php.ini file, I have this line: extension_dir ="F:\PHP\ext" And later, I have: extension=php_curl.dll
4
7739
by: joesri | last post by:
i have received an "Unable to load dll ".dll". The Specified module could not be found " while running ASP.NET Web Page. I have placed dll and supported dll in wwwroot\bin directory,but it is not working . Whether i have to reset IIS?........ Can anybody help me .......
0
7870
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8236
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7992
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8225
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6639
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5732
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3850
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3891
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1465
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.