473,320 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Calling a Form Function limited to 1 argument?

Lots of posts explained to me how to invoke a function inside a form
from another form.

Unfortunately, it appears that a function inside a form can have at
most 1 argument. I can create a form function that accepts multiple
arguments, but when I add a call to this function from elsewhere,
Access generates a Compile/Syntax error.

Is this true? Is the only way around it to join multiple arguments
into a string before the call and split them apart inside the
function?

Thanks.

Jeff
Nov 12 '05 #1
2 2089
On 19 Jan 2004 16:16:48 -0800, jw*********@attbi.com (Jeff Wilson) wrote:
Lots of posts explained to me how to invoke a function inside a form
from another form.

Unfortunately, it appears that a function inside a form can have at
most 1 argument. I can create a form function that accepts multiple
arguments, but when I add a call to this function from elsewhere,
Access generates a Compile/Syntax error.

Is this true? Is the only way around it to join multiple arguments
into a string before the call and split them apart inside the
function?

Thanks.

Jeff


A public function in a form module can have as many arguments as you want.
What problems are you having trying to implement this?
Nov 12 '05 #2
On 19 Jan 2004 16:16:48 -0800 in comp.databases.ms-access,
jw*********@attbi.com (Jeff Wilson) wrote:
Lots of posts explained to me how to invoke a function inside a form
from another form.

Unfortunately, it appears that a function inside a form can have at
most 1 argument. I can create a form function that accepts multiple
arguments, but when I add a call to this function from elsewhere,
Access generates a Compile/Syntax error.

Is this true? Is the only way around it to join multiple arguments
into a string before the call and split them apart inside the
function?


Post the function call you are using and the first line of the
function (the one with the word "function" in it).
--
A)bort, R)etry, I)nfluence with large hammer.
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Alex Lyman | last post by:
Does anyone have any code handy (or know what a good direction for me to head in), to call functions, if you have an address of the function, its declspec (for my app, it's limited to _stdcall and...
3
by: Prashant | last post by:
Okay this is my problem. I have a function, MainDisplay(char*) that takes in an argument of a string to display. Simple. I want this function to also be able to display the function that called...
8
by: Muthu | last post by:
I've read calling conventions to be the order(reverse or forward) in which the parameters are being read & understood by compilers. For ex. the following function. int Add(int p1, int p2, int...
18
by: John Friedland | last post by:
My problem: I need to call (from C code) an arbitrary C library function, but I don't know until runtime what the function name is, how many parameters are required, and what the parameters are. I...
7
by: Kenneth Brody | last post by:
The recent thread on "query about main()" got me thinking... As I recall, calling a function with the wrong parameters causes undefined behavior. (These all assume that no prototype of foo()...
4
by: Adam Smith | last post by:
Hello, How can I call or trigger an external javascript twice in a form? I have <script language="JavaScript" src="country_state.js" name="Country_State"> <script type="text/javascript"...
11
by: Rik | last post by:
Hello guys, now that I'm that I'm working on my first major 'open' forms (with uncontrolled users I mean, not a secure backend-interface), I'd like to add a lot of possibilities to check wether...
10
by: sulekhasweety | last post by:
Hi, the following is the definition for calling convention ,which I have seen in a text book, can anyone give a more detailed explanation in terms of ANSI - C "the requirements that a...
6
by: Ole Nielsby | last post by:
VC has a __cdecl specifier which allows functions and methods to be called with varying parameter count. (I understand this is the default for functions in general but in VC, instances use...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.