PEB 1,418
Expert 1GB
When i'm trying to pass missing values to a function called from a query like:
Expr1:my_function("fdf",,"fdf",,,,"fd")
I always obtain an error!
I'll try using:
Eval("my_function('fdf',,'df',,,,'fd')")
to see what happens!
Any other suggestions?
TIA
Vladi
7 2177 NeoPa 32,556
Expert Mod 16PB
What's the VBA of your function Vladi?
And can you post some SQL examples of trying to use it.
When i'm trying to pass missing values to a function called from a query like:
Expr1:my_function("fdf",,"fdf",,,,"fd")
I always obtain an error!
I'll try using:
Eval("my_function('fdf',,'df',,,,'fd')")
to see what happens!
Any other suggestions?
TIA
Vladi
'Make sure that the number of Arguments passed to the Function matches the
'number of declared Parameters contained within the Function, both number
'and type. e.g. Passing 3 Arguments when 4 are declared within the Function,
'passing a Numeric value to a Date type. Make sure that the Function is
'declared Publically e.g. Public Function fMyFunction (Param1 As String,
'Param2 As Date, Param 3 As Boolean) As String
When i'm trying to pass missing values to a function called from a query like:
Expr1:my_function("fdf",,"fdf",,,,"fd")
I always obtain an error!
I'll try using:
Eval("my_function('fdf',,'df',,,,'fd')")
to see what happens!
Any other suggestions?
TIA
Vladi
Vladi
Unless the missing parameters are set as optional in the function it won't work.
Mary
PEB 1,418
Expert 1GB
Vladi
Unless the missing parameters are set as optional in the function it won't work.
Mary
Sure
I've tried a lot but no chance! Finnally i've done the function to accept both:
Null
and missing values and the problem is resolved!
Eval didn't work in this case!
If it worked can do a great job coz i'm using this function to send mails, and when the body is html u can guess what happens with " and ' :)
Simply in the function i've introduced the null to be acceptable value and it is Ok now!
Thanks for your suggestions!
PEB 1,418
Expert 1GB
'Make sure that the number of Arguments passed to the Function matches the
'number of declared Parameters contained within the Function, both number
'and type. e.g. Passing 3 Arguments when 4 are declared within the Function,
'passing a Numeric value to a Date type. Make sure that the Function is
'declared Publically e.g. Public Function fMyFunction (Param1 As String,
'Param2 As Date, Param 3 As Boolean) As String
The arguments are on the correct place but are optional! This is all of the problem obviously!
It's pitty that in the query you should use null for optional arguments, but sometimes it gives errors in some functions!
For my functions with optional parameters i'll include the nulls also like a source of missing parameter!
:)
I'll come back soon in the forum people!
:)
I'll come back soon in the forum people!
We miss you Vladi
Mary
NeoPa 32,556
Expert Mod 16PB
The arguments are on the correct place but are optional! This is all of the problem obviously!
It's pitty that in the query you should use null for optional arguments, but sometimes it gives errors in some functions!
For my functions with optional parameters i'll include the nulls also like a source of missing parameter!
:)
I'll come back soon in the forum people!
Vladi,
Optional arguments does NOT mean using a Null!
If you pass a field to a function that is passing an argument - it is simply a Null argument.
In the code, the functions IsNull() & IsMissing() are two different things.
If you pass a Null to an optional string parameter, for instance, that will give an error.
HTH -Ade.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Paul |
last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and
session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
|
by: domeceo |
last post by:
can anyone tell me why I cannot pass values in a setTimeout function
whenever I use this function it says "menu is undefined" after th
alert.
function imgOff(menu, num) {
if (document.images) {...
|
by: jr |
last post by:
Sorry for this very dumb question, but I've clearly got a long way to go!
Can someone please help me pass an array into a function. Here's a starting
point.
void TheMainFunc()
{
// Body of...
|
by: Resant |
last post by:
I have a query :
Exec 'Select * From Receiving Where Code In (' + @pCode + ')'
@pCode will contain more than one string parameter, eg : A1, A2, A3
How can i write that parameters, I try use :...
|
by: dcarson |
last post by:
I've read about this error in several other discussions, but still
can't seem to pinpoint the problem with my code. Everything seemed to
be working fine for some time, but it now tends to bomb out...
|
by: Alfred Taylor |
last post by:
I essentially need a countif() function for xsl. Something to where I could
do countif(node-set, condition). Rather than try to get too extreme, i
decided to just write one for my countif() with...
|
by: Keith |
last post by:
Good Afternoon,
New to .Net. I am trying to pass date/time values to a MS Access query depending on what value is selected from a dropdown list box (January, February, etc). I have declared...
|
by: Steve Turner |
last post by:
I have read several interesting posts on passing structures to C dlls, but none seem to cover the following case. The structure (as seen in C) is as follows:
typedef struct tag_scanparm
{
short...
|
by: fredindy |
last post by:
I'm having trouble figuring out what I need to do here. Basically, I
want to pull data from several different tables and send them to a form
using open args. However, the form that is being fed...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |