473,480 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Create 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_DIR. 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_DIR(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_value As Variant

var_return_value = Null

Select Case vn_action_code
Case 0 'initialize
var_dbs_cnt = get_databases(arr_dbs())

var_return_value = True

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

get_databases_DIR = var_return_value

End Function
Public Function get_databases(ByRef arr_dbs() As String) As Integer

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

End Function
Dec 13 '07 #1
0 1550

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

Similar topics

10
7483
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...
39
6473
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. ...
7
3831
by: Malcolm Cook | last post by:
Hi, I've created and installed a custom UDF to populate my combobox, and have defined it per :...
14
1621
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...
6
2723
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...
3
9240
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...
4
3340
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
22788
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
6918
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...
0
7057
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,...
0
7102
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...
1
6756
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...
1
4798
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...
0
3000
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1310
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 ...
1
570
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
199
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.