dbTalk Databases Forums  

Selected Property Question Access 2000

comp.database.ms-access comp.database.ms-access


Discuss Selected Property Question Access 2000 in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Enterprise
 
Posts: n/a

Default Selected Property Question Access 2000 - 06-02-2004 , 02:08 PM






Hi,
I have a extended combo box(mybox) that gets its values from a Table.
Is there anyway to assign for the on click event procedure the zero
based selected array to another array that's public?
I was trying to do this:
Public myarray(100) as (boolean or integer) 'defined in a start up
form

then I want to say myarray = Me!mebox.selected
but that does not work.

Thanks in advance

Reply With Quote
  #2  
Old   
Gary Floam
 
Posts: n/a

Default Re: Selected Property Question Access 2000 - 06-03-2004 , 03:47 PM






You need a simple loop

Dim i as integer
Dim j as variant
i = 0
for each j in mebox.selected
i = i + 1
myarray(j) = i
Next j

j has to be a variant, not an integer.

Hope this helps

"Enterprise" <vaylg (AT) hotmail (DOT) com> wrote

Quote:
Hi,
I have a extended combo box(mybox) that gets its values from a Table.
Is there anyway to assign for the on click event procedure the zero
based selected array to another array that's public?
I was trying to do this:
Public myarray(100) as (boolean or integer) 'defined in a start up
form

then I want to say myarray = Me!mebox.selected
but that does not work.

Thanks in advance



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.