473,547 Members | 2,532 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RowSourcetype Function works in MDB but not in MDE

I have a list and it's rowsourcetype is set to the function
get_databases_D IR. Function works without any problem in MDB, but not
in MDE (nothing is returned). If Static was the problem, since I am
returning the array from second function, it shouldn't work in MDB
also, isn't ?

Private Function get_databases_D IR(vn_list As Control, vn_unique_ID,
vn_row As Long, vn_col As Long, vn_action_code As Integer) As Variant

On Error GoTo error_handler:

Static arr_dbs() As String
Dim var_return_valu e As Variant

var_return_valu e = Null

Select Case vn_action_code
Case 0 'initialize
var_dbs_cnt = get_databases(a rr_dbs())

var_return_valu e = True

Case 1 'open
var_return_valu e = Timer 'unique ID number for control
Case 2 'not used by access
var_return_valu e = ""
Case 3 'get number of rows
var_return_valu e = var_dbs_cnt
Case 4 'get number of columns
var_return_valu e = 2
Case 5 'use column widths specified in properties
var_return_valu e = -1
Case 6 'get data
var_return_valu e = arr_dbs(vn_row + 1, vn_col + 1)
Case 9
Erase arr_dbs
End Select

get_databases_D IR = var_return_valu e

End Function
Public Function get_databases(B yRef arr_dbs() As String) As Integer

..... fill arr_dbs with data.....

End Function
Dec 13 '07 #1
0 1557

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

Similar topics

10
7494
by: R.G. Vervoort | last post by:
I am using a javafunction (onclick in select) in which i am calling a function in php (thats why i send this to both php and javascript newsgroups). in the onclick i call the function "Place_Selected" with the value from the select (naam_keuze.value) in the function the value becomes the $zoek_id and searches in the database for the...
39
6492
by: Randell D. | last post by:
Folks, I'm sure this can be done legally, and not thru tricks of the trade - I hope someone can help. I'm writing a 'tool' (a function) which can be used generically in any of my projects. When it completes, it can call a success, or a failure function. The names of these success, or failure functions will differ, and I'd like to know...
7
3838
by: Malcolm Cook | last post by:
Hi, I've created and installed a custom UDF to populate my combobox, and have defined it per : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaac10/html/acproRowSourceTypeFunctionParameters.asp I'm using ACC2002 in an ADP. However, I'm finding that he control variable (called "code" in the above documentation), is...
14
1628
by: António Marques | last post by:
Hi! I don't think I've ever been here, so I assume I'm addressing a bunch of nice people. Can you help me? I don't think there's a solution, but who knows. The thing is, picture a large project where you want some encapsulation. But a lot of it being grouping of what would otherwise be static members of the global namespace. So that...
6
2737
by: Rahul K | last post by:
Hi I am working on Visual Studio on Windows. I have a function which return the list of all the IP Addresses of a machine: vector<char *getAllLocalIPAddress() { char localHostName; struct hostent *hp; int i=0,rc;
3
9248
pbmods
by: pbmods | last post by:
AN INTRODUCTION TO FUNCTION OBJECTS LEVEL: INTERMEDIATE PREREQS: OBJECTS You've seen it before. You're setting up an XMLHttpRequest call, and you need to execute a function when it returns, so you do something like this: http.onreadystatechange = myAwesomeFunction;
4
3355
by: abendstund | last post by:
Hi, I have the following code and trouble with ambiguity due to operator overloading.. The code is also at http://paste.nn-d.de/441 snip>>
2
22829
by: AccessBeetle | last post by:
The seoncd line in following code is always red as it contains some error. Me.Combo31.RowSourceType = "Value list" Me.Combo31.RowSource = "spvr";"mngr";"user" Please help
0
7437
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...
0
7703
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. ...
0
7947
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7797
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...
1
5362
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...
0
5081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3473
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1923
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1050
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.