Connecting Tech Pros Worldwide Help | Site Map

me.cb.Type?

  #1  
Old November 13th, 2005, 08:17 AM
Tim
Guest
 
Posts: n/a
Hello,

I'm trying to create a change log for database
I get a runtime error 438 while tying to get the type of a bound
combo-box (table/query) control.

How am I supposed to get the type. It even works for other combobox
with a value list. What don't I understand. I'm using DAO. I would like
the datatype of the field and not the data entered.

Thanks

Tim

  #2  
Old November 13th, 2005, 08:17 AM
Tim
Guest
 
Posts: n/a

re: me.cb.Type?


Forgot to add that I'm using Access 2002

Tim

  #3  
Old November 13th, 2005, 08:17 AM
pietlinden@hotmail.com
Guest
 
Posts: n/a

re: me.cb.Type?



Tim wrote:[color=blue]
> Forgot to add that I'm using Access 2002
>
> Tim[/color]

you may need to go through the columns collection, as a combobox can
have any number of columns. So it's probably
cboSomeCombo.Column(x).Type

  #4  
Old November 13th, 2005, 08:18 AM
Tim Marshall
Guest
 
Posts: n/a

re: me.cb.Type?


Tim Marshall wrote:
[color=blue]
> Tim wrote:
>[color=green]
>> How am I supposed to get the type. It even works for other combobox
>> with a value list. What don't I understand. I'm using DAO. I would like
>> the datatype of the field and not the data entered.[/color]
>
>
> me.cb.RowSourceType[/color]

Sorry, misread, disregard.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
  #5  
Old November 13th, 2005, 08:19 AM
Tim Marshall
Guest
 
Posts: n/a

re: me.cb.Type?


Tim wrote:
[color=blue]
> How am I supposed to get the type. It even works for other combobox
> with a value list. What don't I understand. I'm using DAO. I would like
> the datatype of the field and not the data entered.[/color]

me.cb.RowSourceType

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating checkboxes dynamically document.createElement Sebarry answers 9 September 1st, 2007 11:44 PM
Please help me understand Beringer answers 5 November 16th, 2005 07:34 PM
Type identifier management and object factories Mark F. Haigh answers 1 July 22nd, 2005 06:55 PM
my own type in C, sequence protocol Torsten Mohr answers 8 July 18th, 2005 04:07 PM