Hello,
I'm getting Data type mismatch for the below query, seeking for your advises please.
Thanks in advance Gurus!![]()
Please Login or Register to view this content.
Hello,
I'm getting Data type mismatch for the below query, seeking for your advises please.
Thanks in advance Gurus!![]()
Please Login or Register to view this content.
Where do you get the error?
If posting code please use code tags, see here.
I think on this part Norie
Actually, the original code is in SQL script, I've tried substituing CLng instead of Cast due to access cannot read Cast function.
btw, Report_ID is my Primary key.![]()
Please Login or Register to view this content.
Does that query run when you try and execute it manually in the database?
Does the database you are querying support the functions CLng and Val?
It doesn't run coz' the query seems incorrect. Yes, access database support CLng and Val functions.
The original code was: (It is in MySQL script)
My problem in that code is that Cast function is not supported in ms access and I've search in the internet that CLng, CInt and Val functions can substitute for Cast, but unfortunately, it still gives me an error![]()
Please Login or Register to view this content.
for the below code
i've converted it to CLng or CInt, but still it doesn't work.![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Last edited by puuts; 02-09-2015 at 01:23 PM.
Why are you using Val and CInt?
Have you tried just using one of them?
Also, what happens if you don't use either of them?
still get the same error. Either I've use only Val,CLng or CInt.
Where exactly do you get the error?
It jumps on my Errohandler when entering on this line:
My whole code is:![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
I've fix it now. I've used CStr() function instead of CLng,Val or CInt since varchar is used in the original script.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks